summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/opcodes/mips-dis.c
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/binutils/opcodes/mips-dis.c')
-rw-r--r--gnu/usr.bin/binutils/opcodes/mips-dis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/usr.bin/binutils/opcodes/mips-dis.c b/gnu/usr.bin/binutils/opcodes/mips-dis.c
index 1ed1abb9669..2c82e21e132 100644
--- a/gnu/usr.bin/binutils/opcodes/mips-dis.c
+++ b/gnu/usr.bin/binutils/opcodes/mips-dis.c
@@ -77,7 +77,7 @@ print_insn_arg (d, l, pc, info)
case 'i':
case 'u':
- (*info->fprintf_func) (info->stream, "%d",
+ (*info->fprintf_func) (info->stream, "0x%x",
(l >> OP_SH_IMMEDIATE) & OP_MASK_IMMEDIATE);
break;
@@ -214,7 +214,7 @@ _print_insn_mips (memaddr, word, info)
/* Build a hash table to shorten the search time. */
if (! init)
{
- int i;
+ unsigned int i;
for (i = 0; i <= OP_MASK_OP; i++)
{