]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libgfortran/generated/maxloc0_16_i8.c
re PR fortran/30512 ([4.1 only] MAXVAL() incorrect for zero-size int arrays, and...
[thirdparty/gcc.git] / libgfortran / generated / maxloc0_16_i8.c
index aeb0aedcb296ff91a31031688386a5437abe5dc9..82ff74fa71e618703d44e632d23e013cdda05a8c 100644 (file)
@@ -103,7 +103,7 @@ maxloc0_16_i8 (gfc_array_i16 * const restrict retarray,
 
   GFC_INTEGER_8 maxval;
 
-  maxval = -GFC_INTEGER_8_HUGE;
+  maxval = (-GFC_INTEGER_8_HUGE-1);
 
   while (base)
     {
@@ -227,7 +227,7 @@ mmaxloc0_16_i8 (gfc_array_i16 * const restrict retarray,
 
   GFC_INTEGER_8 maxval;
 
-  maxval = -GFC_INTEGER_8_HUGE;
+  maxval = (-GFC_INTEGER_8_HUGE-1);
 
   while (base)
     {