X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=sim%2Fv850%2Fsimops.c;h=40d578e5d0ac87e17c5716c05cae787167668af9;hb=1d19cae752a7b032b8253feb4fa3b9f1dc162823;hp=b8b3856ec666af2067356263314c231ca2cdae71;hpb=08832196accd270fa053e8125c21e7a54ab19fe0;p=thirdparty%2Fbinutils-gdb.git diff --git a/sim/v850/simops.c b/sim/v850/simops.c index b8b3856ec66..40d578e5d0a 100644 --- a/sim/v850/simops.c +++ b/sim/v850/simops.c @@ -3317,7 +3317,7 @@ v850_bins (SIM_DESC sd, unsigned int source, unsigned int lsb, unsigned int msb, pos = lsb; width = (msb - lsb) + 1; - mask = ~ (-1 << width); + mask = ~ (-(1 << width)); source &= mask; mask <<= pos; result = (* dest) & ~ mask;