diff options
author | Magnus Lång <[email protected]> | 2015-12-01 15:24:25 +0000 |
---|---|---|
committer | Magnus Lång <[email protected]> | 2015-12-02 15:58:15 +0100 |
commit | 34380bad4985bc827866129597e0bea940e076f4 (patch) | |
tree | 24374b86fc83e9e667df7697e76a5cf3ccc8b728 /erts/emulator/beam | |
parent | 33299ece737c635910e358d7e09dd8af6bce1a5d (diff) | |
download | otp-34380bad4985bc827866129597e0bea940e076f4.tar.gz otp-34380bad4985bc827866129597e0bea940e076f4.tar.bz2 otp-34380bad4985bc827866129597e0bea940e076f4.zip |
hipe: Fix signed compares of unsigned sizes
Also, some of the branches were testing sizes in bits against a constant
?MAX_BINSIZE, which was in bytes. The signed comparisons masked this
mistake. These branches have been removed since all sizes in bits that
fit in a machine word are valid binary sizes.
Finally, a test that reproduces the issue was added to bs_construct,
along with a test for one of the cases (bs_init<0>(...)) when the test
against ?MAX_BINSIZE must be changed to unsigned rather than removed.
Diffstat (limited to 'erts/emulator/beam')
0 files changed, 0 insertions, 0 deletions