diff options
author | Rickard Green <[email protected]> | 2018-11-01 11:20:38 +0100 |
---|---|---|
committer | Rickard Green <[email protected]> | 2018-11-01 11:20:38 +0100 |
commit | 2bfd31825f15695705409bf61ab360ef31251118 (patch) | |
tree | 124e3bbfcf51315088499492d8e46fb0145e9eb5 /erts/emulator | |
parent | fa6994f5c8384a15196121fce2983291c9c21245 (diff) | |
parent | fd7be62b180cdb2517c363494cf49260e4a53afa (diff) | |
download | otp-2bfd31825f15695705409bf61ab360ef31251118.tar.gz otp-2bfd31825f15695705409bf61ab360ef31251118.tar.bz2 otp-2bfd31825f15695705409bf61ab360ef31251118.zip |
Merge branch 'maint'
* maint:
Fix erts_internal_ref_number_cmp()
Diffstat (limited to 'erts/emulator')
-rw-r--r-- | erts/emulator/beam/erl_bif_unique.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/erts/emulator/beam/erl_bif_unique.h b/erts/emulator/beam/erl_bif_unique.h index 40b70667c0..944788c67c 100644 --- a/erts/emulator/beam/erl_bif_unique.h +++ b/erts/emulator/beam/erl_bif_unique.h @@ -242,11 +242,11 @@ erts_internal_ref_number_cmp(Uint32 num1[ERTS_REF_NUMBERS], Uint32 num2[ERTS_REF_NUMBERS]) { if (num1[2] != num2[2]) - return (int) ((Sint64) num1[2] - (Sint64) num2[2]); + return num1[2] > num2[2] ? 1 : -1; if (num1[1] != num2[1]) - return (int) ((Sint64) num1[1] - (Sint64) num2[1]); + return num1[1] > num2[1] ? 1 : -1; if (num1[0] != num2[0]) - return (int) ((Sint64) num1[0] - (Sint64) num2[0]); + return num1[0] > num2[0] ? 1 : -1; return 0; } |