Fix compile time warnings generated when compiling with clang.
[deliverable/binutils-gdb.git] / opcodes / bfin-dis.c
index bf2052e3ed137041864aea75a6e2c9ea5d56835e..54fac225341417c212c10cf7e80d84745458de1c 100644 (file)
@@ -167,7 +167,7 @@ fmtconst (const_forms_t cf, TIword x, bfd_vma pc, disassemble_info *outf)
   else
     {
       if (constant_formats[cf].issigned && x < 0)
-       sprintf (buf, "-0x%x", abs (x));
+       sprintf (buf, "-0x%lx", (unsigned long)(- x));
       else
        sprintf (buf, "0x%lx", (unsigned long) x);
     }
This page took 0.04463 seconds and 4 git commands to generate.