diff options
Diffstat (limited to 'libgfortran/generated/product_c8.c')
-rw-r--r-- | libgfortran/generated/product_c8.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libgfortran/generated/product_c8.c b/libgfortran/generated/product_c8.c index 80a6ac62789..0fe8ff194c6 100644 --- a/libgfortran/generated/product_c8.c +++ b/libgfortran/generated/product_c8.c @@ -323,18 +323,13 @@ mproduct_c8 (gfc_array_c8 * const restrict retarray, { result = 1; - if (len <= 0) - *dest = 1; - else + for (n = 0; n < len; n++, src += delta, msrc += mdelta) { - for (n = 0; n < len; n++, src += delta, msrc += mdelta) - { if (*msrc) result *= *src; - } - *dest = result; } + *dest = result; } /* Advance to the next element. */ count[0]++; |