* crx-dis.c (EXTRACT): Make macro work on 64-bit hosts.
[deliverable/binutils-gdb.git] / opcodes / crx-dis.c
index 8f14e8ba92b2f77b3fd927929034357d8e65db57..8d51c75132179a3b4ffa4789547a1b07ed6be53d 100644 (file)
@@ -30,7 +30,7 @@
 
 /* Extract 'n_bits' from 'a' starting from offset 'offs'.  */
 #define EXTRACT(a, offs, n_bits)           \
-  (n_bits == 32 ? (((a) >> (offs)) & ~0L)   \
+  (n_bits == 32 ? (((a) >> (offs)) & 0xffffffffL)   \
   : (((a) >> (offs)) & ((1 << (n_bits)) -1)))
 
 /* Set Bit Mask - a mask to set all bits starting from offset 'offs'.  */
This page took 0.023354 seconds and 4 git commands to generate.