summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2001-03-30 07:37:04 +0000
committerAlexandre Oliva <aoliva@redhat.com>2001-03-30 07:37:04 +0000
commit39dadf1f8c66c2beed121f87d04192cba0ac9ffd (patch)
tree2ae178df932a775e4f2e07adec8247d1d2d1977a
parent5f3d2cc93c1fdc995ac1724b6abf5ba823d948da (diff)
downloadbinutils-gdb-39dadf1f8c66c2beed121f87d04192cba0ac9ffd.tar.gz
* ppc-opc.c (insert_mbe): Shift mask initializer as long.
-rw-r--r--opcodes/ChangeLog4
-rw-r--r--opcodes/ppc-opc.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index f4ffd8a0e13..dd8cb594a86 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,7 @@
+2001-03-30 Alexandre Oliva <aoliva@redhat.com>
+
+ * ppc-opc.c (insert_mbe): Shift mask initializer as long.
+
2001-03-24 Alan Modra <alan@linuxcare.com.au>
* i386-dis.c (PREGRP25): Define.
diff --git a/opcodes/ppc-opc.c b/opcodes/ppc-opc.c
index ccfc89d2f68..211d386574c 100644
--- a/opcodes/ppc-opc.c
+++ b/opcodes/ppc-opc.c
@@ -755,7 +755,7 @@ insert_mbe (insn, value, errmsg)
/* me: location of last 1->0 transition */
/* count: # transitions */
- for (mx = 0, mask = 1 << 31; mx < 32; ++mx, mask >>= 1)
+ for (mx = 0, mask = (long) 1 << 31; mx < 32; ++mx, mask >>= 1)
{
if ((uval & mask) && !last)
{