diff options
Diffstat (limited to 'libgfortran/io/write.c')
-rw-r--r-- | libgfortran/io/write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgfortran/io/write.c b/libgfortran/io/write.c index faf8b90..553557d 100644 --- a/libgfortran/io/write.c +++ b/libgfortran/io/write.c @@ -1490,7 +1490,7 @@ nml_write_obj (namelist_info * obj, index_type offset, { strcat (ext_name, dim_i ? "" : "("); clen = strlen (ext_name); - st_sprintf (ext_name + clen, "%d", obj->ls[dim_i].idx); + st_sprintf (ext_name + clen, "%ld", (long) obj->ls[dim_i].idx); strcat (ext_name, (dim_i == obj->var_rank - 1) ? ")" : ","); } |