aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/utils.c
diff options
context:
space:
mode:
authorErlang/OTP <[email protected]>2018-08-10 19:02:25 +0200
committerErlang/OTP <[email protected]>2018-08-10 19:02:25 +0200
commit2c1ca1cc79063cc76befb00ad1ccd16efbd470c2 (patch)
tree4ff10021beaba8ba81ef2606e1e3c7ae8539521a /erts/emulator/beam/utils.c
parent4664de710ded469916fcc8f85d4e9791adc319e9 (diff)
parenta4492d67fed157533a362f932c6ca8bbdf3d1bec (diff)
downloadotp-2c1ca1cc79063cc76befb00ad1ccd16efbd470c2.tar.gz
otp-2c1ca1cc79063cc76befb00ad1ccd16efbd470c2.tar.bz2
otp-2c1ca1cc79063cc76befb00ad1ccd16efbd470c2.zip
Merge branch 'dotsimon/ref_ordering_bug/OTP-15225' into maint-21
* dotsimon/ref_ordering_bug/OTP-15225: Fixed #Ref ordering bug Test #Ref ordering in lists and ets
Diffstat (limited to 'erts/emulator/beam/utils.c')
-rw-r--r--erts/emulator/beam/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/utils.c b/erts/emulator/beam/utils.c
index 19b1312ee3..08f8ca9788 100644
--- a/erts/emulator/beam/utils.c
+++ b/erts/emulator/beam/utils.c
@@ -3122,7 +3122,7 @@ tailrecur_ne:
ASSERT(alen == blen);
for (i = (Sint) alen - 1; i >= 0; i--)
if (anum[i] != bnum[i])
- RETURN_NEQ((Sint32) (anum[i] - bnum[i]));
+ RETURN_NEQ(anum[i] < bnum[i] ? -1 : 1);
goto pop_next;
case (_TAG_HEADER_EXTERNAL_REF >> _TAG_PRIMARY_SIZE):
if (is_internal_ref(b)) {