diff options
author | Sverker Eriksson <[email protected]> | 2017-07-12 17:09:10 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2017-07-12 17:09:10 +0200 |
commit | abc4fd372d476821448dfb949bea4e28ab82ac26 (patch) | |
tree | 8691172836707b2e08343704350340e9c1872c23 /lib/et | |
parent | 6d4001de141a00b3bf37b8f7b24c5bde2b4f4015 (diff) | |
download | otp-abc4fd372d476821448dfb949bea4e28ab82ac26.tar.gz otp-abc4fd372d476821448dfb949bea4e28ab82ac26.tar.bz2 otp-abc4fd372d476821448dfb949bea4e28ab82ac26.zip |
erts: Fix bug in bxor of a big negative number
Wrong result for
(X bsl WS) bxor Y.
where
X is any negative integer
Y is any integer that does not require more words than X
WS is erlang:system_info(wordsize) or larger
Fix: The subtraction of 1 (for 2-complement conversion)
must be carried along all the way to the last words.
Diffstat (limited to 'lib/et')
0 files changed, 0 insertions, 0 deletions