diff options
Diffstat (limited to 'sim/v850/simops.c')
-rw-r--r-- | sim/v850/simops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sim/v850/simops.c b/sim/v850/simops.c index f6f43ee..9a83d07 100644 --- a/sim/v850/simops.c +++ b/sim/v850/simops.c @@ -211,7 +211,8 @@ trace_result (int has_result, unsigned32 result) int i; for (i = 0; i < trace_num_values; i++) { - sprintf (chp, "%*s0x%.8lx", SIZE_VALUES - 10, "", trace_values[i]); + sprintf (chp, "%*s0x%.8lx", SIZE_VALUES - 10, "", + (long) trace_values[i]); chp = strchr (chp, '\0'); } while (i++ < 3) |