aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test/exception_SUITE.erl
diff options
context:
space:
mode:
authorFilipe David Manana <[email protected]>2011-09-01 02:05:05 +0100
committerFilipe David Manana <[email protected]>2011-09-02 00:35:48 -0700
commit03d8c2877342d5ed57596330a61ec0374092f136 (patch)
treedc4f32655af4b0ab0fdd7faa30a1092b87bc65b7 /erts/emulator/test/exception_SUITE.erl
parenteb4aa9b65c8b50597ed8fae092555145e466e1dc (diff)
downloadotp-03d8c2877342d5ed57596330a61ec0374092f136.tar.gz
otp-03d8c2877342d5ed57596330a61ec0374092f136.tar.bz2
otp-03d8c2877342d5ed57596330a61ec0374092f136.zip
Fix enif_compare on 64bits machines
In 64bits machines the Sint type has a size of 8 bytes, while on 32bits machines it has a 4 bytes size. enif_compare was ignoring this and therefore returning incorrect values when the result of the CMP function (which returns a Sint value) doesn't fit in 4 bytes. For example, passing the operands -1294536544000 and -1178704800000 to enif_compare would trigger the bug.
Diffstat (limited to 'erts/emulator/test/exception_SUITE.erl')
0 files changed, 0 insertions, 0 deletions