summaryrefslogtreecommitdiff
path: root/libgfortran/generated/minloc0_16_r16.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgfortran/generated/minloc0_16_r16.c')
-rw-r--r--libgfortran/generated/minloc0_16_r16.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libgfortran/generated/minloc0_16_r16.c b/libgfortran/generated/minloc0_16_r16.c
index aad0889e039..d727f4c91e6 100644
--- a/libgfortran/generated/minloc0_16_r16.c
+++ b/libgfortran/generated/minloc0_16_r16.c
@@ -106,7 +106,7 @@ minloc0_16_r16 (gfc_array_i16 * const restrict retarray,
/* Initialize the return value. */
for (n = 0; n < rank; n++)
- dest[n * dstride] = 1;
+ dest[n * dstride] = 0;
{
GFC_REAL_16 minval;
@@ -118,7 +118,7 @@ minloc0_16_r16 (gfc_array_i16 * const restrict retarray,
{
/* Implementation start. */
- if (*base < minval)
+ if (*base < minval || !dest[0])
{
minval = *base;
for (n = 0; n < rank; n++)
@@ -241,7 +241,7 @@ mminloc0_16_r16 (gfc_array_i16 * const restrict retarray,
/* Initialize the return value. */
for (n = 0; n < rank; n++)
- dest[n * dstride] = 1;
+ dest[n * dstride] = 0;
{
GFC_REAL_16 minval;
@@ -253,7 +253,7 @@ mminloc0_16_r16 (gfc_array_i16 * const restrict retarray,
{
/* Implementation start. */
- if (*mbase && *base < minval)
+ if (*mbase && (*base < minval || !dest[0]))
{
minval = *base;
for (n = 0; n < rank; n++)