aboutsummaryrefslogtreecommitdiff
path: root/libgfortran
diff options
context:
space:
mode:
authorJerry DeLisle <jvdelisle@gcc.gnu.org>2008-09-02 01:14:04 +0000
committerJerry DeLisle <jvdelisle@gcc.gnu.org>2008-09-02 01:14:04 +0000
commit4e2eb53c13c1fc2e3f777fa9cd6827716c6b81e4 (patch)
tree8f62bbd7f81ece083f7f1b26bd92c0ba0377e34c /libgfortran
parent4385cc71efd5f16100b877259853f982c18788fd (diff)
downloadgcc-4e2eb53c13c1fc2e3f777fa9cd6827716c6b81e4.zip
gcc-4e2eb53c13c1fc2e3f777fa9cd6827716c6b81e4.tar.gz
gcc-4e2eb53c13c1fc2e3f777fa9cd6827716c6b81e4.tar.bz2
error.c: Fix cast for printf.
2008-09-01 Jerry DeLisle <jvdelisle@gcc.gnu.org> * runtime/error.c: Fix cast for printf. From-SVN: r139880
Diffstat (limited to 'libgfortran')
-rw-r--r--libgfortran/ChangeLog4
-rw-r--r--libgfortran/runtime/error.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index f8083c8..8670d46 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,3 +1,7 @@
+2008-09-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
+
+ * runtime/error.c: Fix cast for printf.
+
2008-08-30 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/36895
diff --git a/libgfortran/runtime/error.c b/libgfortran/runtime/error.c
index 0b9c167..d75eaf2 100644
--- a/libgfortran/runtime/error.c
+++ b/libgfortran/runtime/error.c
@@ -199,13 +199,13 @@ show_locus (st_parameter_common *cmp)
if (filename != NULL)
{
st_printf ("At line %d of file %s (unit = %d, file = '%s')\n",
- (int) cmp->line, cmp->filename, cmp->unit, filename);
+ (int) cmp->line, cmp->filename, (int) cmp->unit, filename);
free_mem (filename);
}
else
{
st_printf ("At line %d of file %s (unit = %d)\n",
- (int) cmp->line, cmp->filename, cmp->unit);
+ (int) cmp->line, cmp->filename, (int) cmp->unit);
}
return;
}