diff options
author | Rickard Green <[email protected]> | 2018-08-09 14:21:41 +0200 |
---|---|---|
committer | Rickard Green <[email protected]> | 2018-08-09 14:21:41 +0200 |
commit | 659481f79549258e20a6137cbe9d48beb5b1017a (patch) | |
tree | 8cbfc7f723be10d6f3c9128b5681cdc4fa363035 /erts/emulator/beam | |
parent | 60eefb225ac90dadd6afaf116a1ca572e53aa6fd (diff) | |
parent | 709679eb60a6e2b8065f48d1974810fd51110a2c (diff) | |
download | otp-659481f79549258e20a6137cbe9d48beb5b1017a.tar.gz otp-659481f79549258e20a6137cbe9d48beb5b1017a.tar.bz2 otp-659481f79549258e20a6137cbe9d48beb5b1017a.zip |
Merge branch 'maint'
* maint:
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 f1461a1e5a..996757ef43 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)) { |