From 3eb9799d10a835b6c49cd81b3b59059221276c5c Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Fri, 30 Mar 2001 07:36:27 +0000 Subject: [PATCH] * ppc-opc.c (insert_mbe): Shift mask initializer as long. --- opcodes/ChangeLog | 4 ++++ opcodes/ppc-opc.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index fc06372afa..82e184cc9f 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,7 @@ +2001-03-30 Alexandre Oliva + + * ppc-opc.c (insert_mbe): Shift mask initializer as long. + 2001-03-24 Alan Modra * i386-dis.c (PREGRP25): Define. diff --git a/opcodes/ppc-opc.c b/opcodes/ppc-opc.c index c8772d8015..1ba8296c77 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) {