Fix thinko in 2000-05-02 change.
[binutils-gdb.git] / bfd / libhppa.h
index 121398d2b2d4ce61a16ac4f2c942e4eae254ea92..ddb6efa2e18129263e1c9064bab8f5f5d2efff9c 100644 (file)
@@ -156,7 +156,7 @@ enum hppa_reloc_expr_type_alt
 #define HPPA_R_ARG_RELOC(a)    \
   (((a) >> 22) & 0x3ff)
 #define HPPA_R_CONSTANT(a)     \
-  ((((int)(a)) << (BFD_ARCH_SIZE-22)) >> (BFD_ARCH_SIZE-22))
+  ((((bfd_signed_vma)(a)) << (BFD_ARCH_SIZE-22)) >> (BFD_ARCH_SIZE-22))
 #define HPPA_R_ADDEND(r, c)    \
   (((r) << 22) + ((c) & 0x3fffff))
 #define HPPA_WIDE             (0) /* PSW W-bit, need to check! FIXME */