* crx-dis.c (EXTRACT): Make macro work on 64-bit hosts.
authorNick Clifton <nickc@redhat.com>
Mon, 22 May 2006 08:40:09 +0000 (08:40 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 22 May 2006 08:40:09 +0000 (08:40 +0000)
opcodes/ChangeLog
opcodes/crx-dis.c

index 4550ce928c5155e13545d8a44e939407e640b391..305d8e92595d51ae23454cc860732939ee640c5d 100644 (file)
@@ -1,3 +1,7 @@
+2006-05-22  Nick Clifton  <nickc@redhat.com>
+
+       * crx-dis.c (EXTRACT): Make macro work on 64-bit hosts.
+
 2006-05-22  Nick Clifton  <nickc@redhat.com>
 
        * po/nl.po: Updated translation.
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.025665 seconds and 4 git commands to generate.