diff options
author | Dmitry Belyaev <[email protected]> | 2014-11-13 16:11:20 +1100 |
---|---|---|
committer | Dmitry Belyaev <[email protected]> | 2014-11-14 13:53:16 +1100 |
commit | ba8f70f0e9279e84350be840529c5e9b66f7f55b (patch) | |
tree | f167f3abebe41bb219f15dbb565b3e555c687f17 /lib/common_test/test/ct_hooks_SUITE.erl | |
parent | d68a307e7e40bf0367d1b2c6e2cc0d5fcadc17da (diff) | |
download | otp-ba8f70f0e9279e84350be840529c5e9b66f7f55b.tar.gz otp-ba8f70f0e9279e84350be840529c5e9b66f7f55b.tar.bz2 otp-ba8f70f0e9279e84350be840529c5e9b66f7f55b.zip |
Fix signedness bug
The regression was introduced by making byte type signed.
Bitwise OR (|) applied to signed char (byte) and any longer type reqires the former to expand to the same size.
When the char is negative it is expanded with sign bit filling the extra bytes causing the unexpected result.
Diffstat (limited to 'lib/common_test/test/ct_hooks_SUITE.erl')
0 files changed, 0 insertions, 0 deletions