diff options
author | Simon Cornish <zl9d97p02@sneakemail.com> | 2018-08-03 11:54:01 -0700 |
---|---|---|
committer | Simon Cornish <zl9d97p02@sneakemail.com> | 2018-08-07 17:15:22 -0700 |
commit | 27f6c054de78219ef2f03a7996fd8e7d9b09471b (patch) | |
tree | f8a1cee8ed097488cc566136fd1eb0290a437e2b /erts/emulator/beam/utils.c | |
parent | 8d108683b8c797f601cdd0caf8925f807f8b893d (diff) | |
download | erlang-27f6c054de78219ef2f03a7996fd8e7d9b09471b.tar.gz |
Fixed #Ref ordering bug
Diffstat (limited to 'erts/emulator/beam/utils.c')
-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 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)) { |