summaryrefslogtreecommitdiff
path: root/libgfortran/generated/minloc0_16_r10.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgfortran/generated/minloc0_16_r10.c')
-rw-r--r--libgfortran/generated/minloc0_16_r10.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libgfortran/generated/minloc0_16_r10.c b/libgfortran/generated/minloc0_16_r10.c
index 412676059b9..99ae91d7fc0 100644
--- a/libgfortran/generated/minloc0_16_r10.c
+++ b/libgfortran/generated/minloc0_16_r10.c
@@ -106,7 +106,7 @@ minloc0_16_r10 (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_10 minval;
@@ -118,7 +118,7 @@ minloc0_16_r10 (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_r10 (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_10 minval;
@@ -253,7 +253,7 @@ mminloc0_16_r10 (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++)