aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam
diff options
context:
space:
mode:
authorSimon Cornish <[email protected]>2018-08-03 11:54:01 -0700
committerSimon Cornish <[email protected]>2018-08-07 17:15:22 -0700
commit27f6c054de78219ef2f03a7996fd8e7d9b09471b (patch)
treef8a1cee8ed097488cc566136fd1eb0290a437e2b /erts/emulator/beam
parent8d108683b8c797f601cdd0caf8925f807f8b893d (diff)
downloadotp-27f6c054de78219ef2f03a7996fd8e7d9b09471b.tar.gz
otp-27f6c054de78219ef2f03a7996fd8e7d9b09471b.tar.bz2
otp-27f6c054de78219ef2f03a7996fd8e7d9b09471b.zip
Fixed #Ref ordering bug
Diffstat (limited to 'erts/emulator/beam')
-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)) {