aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2001-03-30 07:36:27 +0000
committerAlexandre Oliva <aoliva@redhat.com>2001-03-30 07:36:27 +0000
commit3eb9799d10a835b6c49cd81b3b59059221276c5c (patch)
tree133d6074bb0198cda0bc0c5c3f97520451026e22
parent1a5447b835010cad6ed99a3174d6ea658b9e066a (diff)
downloadgdb-3eb9799d10a835b6c49cd81b3b59059221276c5c.zip
gdb-3eb9799d10a835b6c49cd81b3b59059221276c5c.tar.gz
gdb-3eb9799d10a835b6c49cd81b3b59059221276c5c.tar.bz2
* 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 fc06372..82e184c 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 c8772d8..1ba8296 100644
--- a/opcodes/ppc-opc.c
+++ b/opcodes/ppc-opc.c
@@ -756,7 +756,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)
{