Fix compile time warnings generated when compiling with clang.
[deliverable/binutils-gdb.git] / opcodes / hppa-dis.c
index 4be0f3ca41600bacfb4efa037cdd67677cf81676..8562952206b288ef7e4df99b4b319a053c29ba7f 100644 (file)
@@ -1103,7 +1103,7 @@ print_insn_hppa (bfd_vma memaddr, disassemble_info *info)
                    int disp;
 
                    if (sign)
-                     disp = (-1 << 10) | imm10;
+                     disp = (-1U << 10) | imm10;
                    else
                      disp = imm10;
 
@@ -1119,7 +1119,7 @@ print_insn_hppa (bfd_vma memaddr, disassemble_info *info)
                    int disp;
 
                    if (sign)
-                     disp = (-1 << 11) | imm11;
+                     disp = (-1U << 11) | imm11;
                    else
                      disp = imm11;
 
This page took 0.023195 seconds and 4 git commands to generate.