diff options
Diffstat (limited to 'libgfortran/generated/minval_i4.c')
-rw-r--r-- | libgfortran/generated/minval_i4.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libgfortran/generated/minval_i4.c b/libgfortran/generated/minval_i4.c index 20766fa62b1..33e9016e502 100644 --- a/libgfortran/generated/minval_i4.c +++ b/libgfortran/generated/minval_i4.c @@ -344,12 +344,8 @@ mminval_i4 (gfc_array_i4 * const restrict retarray, #if defined (GFC_INTEGER_4_QUIET_NAN) int non_empty_p = 0; #endif - if (len <= 0) - *dest = GFC_INTEGER_4_HUGE; - 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_4_INFINITY) || defined (GFC_INTEGER_4_QUIET_NAN) if (*msrc) @@ -374,9 +370,8 @@ mminval_i4 (gfc_array_i4 * const restrict retarray, #endif if (*msrc && *src < result) result = *src; - } - *dest = result; } + *dest = result; } /* Advance to the next element. */ count[0]++; |