diff options
author | Lukas Larsson <[email protected]> | 2014-08-04 12:04:45 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2014-08-08 17:17:18 +0200 |
commit | 9d3c22934491afe85fbcf8543ae43fb2eb1ab387 (patch) | |
tree | 4cfbd2f87d60b7a143426140984a3ae0b93d9252 /lib/snmp/test/snmp_test_lib.hrl | |
parent | 62081266545df8f5eda8e2043f33055cfe575126 (diff) | |
download | otp-9d3c22934491afe85fbcf8543ae43fb2eb1ab387.tar.gz otp-9d3c22934491afe85fbcf8543ae43fb2eb1ab387.tar.bz2 otp-9d3c22934491afe85fbcf8543ae43fb2eb1ab387.zip |
erts: Fix neg int overflow when sint is min size
When INT64_MIN is the value of a Sint64 we have to first cast it to
an Uint64 before negating it. Otherwise we get an integer overflow
which is undefined behaviour and in gcc 4.9 this results in -0 instead
of -9223372036854775808 in gcc 4.8.
Diffstat (limited to 'lib/snmp/test/snmp_test_lib.hrl')
0 files changed, 0 insertions, 0 deletions