diff options
author | Erlang/OTP <[email protected]> | 2018-12-28 12:11:14 +0100 |
---|---|---|
committer | Erlang/OTP <[email protected]> | 2018-12-28 12:11:14 +0100 |
commit | 5a5bb6f80b63b5125cfdd485ef908afb995b4f14 (patch) | |
tree | e0bca1b91031eac3e9b79682c68abdc2876b3756 /erts/emulator/beam | |
parent | e6bf92e6e1a691bba97ea3d339fdab1872b823b3 (diff) | |
parent | c8d3bff46adbff3205eaf76de8a634557cbd4af4 (diff) | |
download | otp-5a5bb6f80b63b5125cfdd485ef908afb995b4f14.tar.gz otp-5a5bb6f80b63b5125cfdd485ef908afb995b4f14.tar.bz2 otp-5a5bb6f80b63b5125cfdd485ef908afb995b4f14.zip |
Merge branch 'sverker/big-band-bug/ERL-804/OTP-15487' into maint-20
* sverker/big-band-bug/ERL-804/OTP-15487:
erts: Fix bug in 'band' of two negative numbers, one big
Diffstat (limited to 'erts/emulator/beam')
-rw-r--r-- | erts/emulator/beam/big.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/erts/emulator/beam/big.c b/erts/emulator/beam/big.c index c5cb268f09..60f0ecf42b 100644 --- a/erts/emulator/beam/big.c +++ b/erts/emulator/beam/big.c @@ -1159,8 +1159,11 @@ static dsize_t I_band(ErtsDigit* x, dsize_t xl, short xsgn, *r++ = ~c1 & ~c2; x++; y++; } - while(xl--) - *r++ = ~*x++; + while(xl--) { + DSUBb(*x,0,b1,c1); + *r++ = ~c1; + x++; + } } } return I_btrail(r0, r, sign); |