diff options
author | Sverker Eriksson <[email protected]> | 2018-12-17 16:03:36 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2018-12-17 16:47:41 +0100 |
commit | c8d3bff46adbff3205eaf76de8a634557cbd4af4 (patch) | |
tree | 561b2ff0e426ca7d4b1687e9f8090f33634db429 /erl-build-tool-vars.sh | |
parent | abc4fd372d476821448dfb949bea4e28ab82ac26 (diff) | |
download | otp-c8d3bff46adbff3205eaf76de8a634557cbd4af4.tar.gz otp-c8d3bff46adbff3205eaf76de8a634557cbd4af4.tar.bz2 otp-c8d3bff46adbff3205eaf76de8a634557cbd4af4.zip |
erts: Fix bug in 'band' of two negative numbers, one big
Similar bug as for bxor fixed by abc4fd372d476821448dfb9
Ex:
1> io:format("~.16B\n", [-16#1110000000000000000 band (-1)]).
-1120000000000000000
Wrong result for
(-X bsl WS) band -Y.
where
X is any positive integer
WS is erlang:system_info(wordsize)*8*N where N is 1 or larger
Y is any positive integer smaller than (1 bsl WS)
Fix:
The subtraction of 1 (for 2-complement conversion)
must be carried along all the way to the last words.
Diffstat (limited to 'erl-build-tool-vars.sh')
0 files changed, 0 insertions, 0 deletions