diff options
author | Erlang/OTP <[email protected]> | 2018-08-09 17:28:28 +0200 |
---|---|---|
committer | Erlang/OTP <[email protected]> | 2018-08-09 17:28:28 +0200 |
commit | 293c12b13ce4118d3b5a629c52c544f28629fe4f (patch) | |
tree | 49e15525f3741b29e9a458b5538b94357c45d3b3 /erts/emulator/beam | |
parent | 31c48e56a972d2f7fe589e3b1746715cbc851db6 (diff) | |
parent | a4492d67fed157533a362f932c6ca8bbdf3d1bec (diff) | |
download | otp-293c12b13ce4118d3b5a629c52c544f28629fe4f.tar.gz otp-293c12b13ce4118d3b5a629c52c544f28629fe4f.tar.bz2 otp-293c12b13ce4118d3b5a629c52c544f28629fe4f.zip |
Merge branch 'dotsimon/ref_ordering_bug/OTP-15225' into maint-20
* dotsimon/ref_ordering_bug/OTP-15225:
Fixed #Ref ordering bug
Test #Ref ordering in lists and ets
Diffstat (limited to 'erts/emulator/beam')
-rw-r--r-- | erts/emulator/beam/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/utils.c b/erts/emulator/beam/utils.c index d7116bd2c3..5fc42f231a 100644 --- a/erts/emulator/beam/utils.c +++ b/erts/emulator/beam/utils.c @@ -3142,7 +3142,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)) { |