diff options
Diffstat (limited to 'libgfortran/generated/maxval_i1.c')
-rw-r--r-- | libgfortran/generated/maxval_i1.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libgfortran/generated/maxval_i1.c b/libgfortran/generated/maxval_i1.c index a94eecae000..6e77368cc4f 100644 --- a/libgfortran/generated/maxval_i1.c +++ b/libgfortran/generated/maxval_i1.c @@ -344,12 +344,8 @@ mmaxval_i1 (gfc_array_i1 * const restrict retarray, #if defined (GFC_INTEGER_1_QUIET_NAN) int non_empty_p = 0; #endif - if (len <= 0) - *dest = (-GFC_INTEGER_1_HUGE-1); - else + for (n = 0; n < len; n++, src += delta, msrc += mdelta) { - for (n = 0; n < len; n++, src += delta, msrc += mdelta) - { #if defined (GFC_INTEGER_1_INFINITY) || defined (GFC_INTEGER_1_QUIET_NAN) if (*msrc) @@ -374,9 +370,8 @@ mmaxval_i1 (gfc_array_i1 * const restrict retarray, #endif if (*msrc && *src > result) result = *src; - } - *dest = result; } + *dest = result; } /* Advance to the next element. */ count[0]++; |