aboutsummaryrefslogtreecommitdiff
path: root/libgfortran/generated/maxval_r10.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgfortran/generated/maxval_r10.c')
-rw-r--r--libgfortran/generated/maxval_r10.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgfortran/generated/maxval_r10.c b/libgfortran/generated/maxval_r10.c
index 7c397ee..f83c4e9 100644
--- a/libgfortran/generated/maxval_r10.c
+++ b/libgfortran/generated/maxval_r10.c
@@ -256,8 +256,8 @@ mmaxval_r10 (gfc_array_r10 * const restrict retarray,
}
len = GFC_DESCRIPTOR_EXTENT(array,dim);
- if (len <= 0)
- return;
+ if (len < 0)
+ len = 0;
mbase = mask->base_addr;