aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog2
-rw-r--r--gcc/config/v850/v850.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b0026a9..90edd04 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,7 @@
2003-05-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+ * v850.c (print_operand): Fix format specifier warnings.
+
* ns32k.c (ADJSP, ns32k_output_function_prologue): Fix format
specifier warnings.
diff --git a/gcc/config/v850/v850.c b/gcc/config/v850/v850.c
index 9238824..e0fc724 100644
--- a/gcc/config/v850/v850.c
+++ b/gcc/config/v850/v850.c
@@ -502,7 +502,7 @@ print_operand (file, x, code)
abort ();
break;
case 'L':
- fprintf (file, "%d\n", INTVAL (x) & 0xffff);
+ fprintf (file, "%d\n", (int)(INTVAL (x) & 0xffff));
break;
case 'M':
fprintf (file, "%d", exact_log2 (INTVAL (x)));