OSDN Git Service

2008-01-13 Thomas Koenig <tkoenig@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / libgfortran / generated / count_16_l8.c
index 90659da..7a6a31a 100644 (file)
@@ -116,8 +116,9 @@ count_16_l8 (gfc_array_i16 * const restrict retarray,
     {
       if (rank != GFC_DESCRIPTOR_RANK (retarray))
        runtime_error ("rank of return array incorrect in"
-                      " COUNT intrinsic: is %d, should be %d",
-                      GFC_DESCRIPTOR_RANK (retarray), rank);
+                      " COUNT intrinsic: is %ld, should be %ld",
+                      (long int) (GFC_DESCRIPTOR_RANK (retarray)),
+                      (long int) rank);
 
       if (compile_options.bounds_check)
        {
@@ -129,8 +130,8 @@ count_16_l8 (gfc_array_i16 * const restrict retarray,
                - retarray->dim[n].lbound;
              if (extent[n] != ret_extent)
                runtime_error ("Incorrect extent in return value of"
-                              " COUNT intrinsic in dimension %d:"
-                              " is %ld, should be %ld", n + 1,
+                              " COUNT intrinsic in dimension %ld:"
+                              " is %ld, should be %ld", (long int) n + 1,
                               (long int) ret_extent, (long int) extent[n]);
            }
        }