diff options
author | Simon Cornish <[email protected]> | 2018-08-03 11:54:01 -0700 |
---|---|---|
committer | Rickard Green <[email protected]> | 2018-08-09 14:26:35 +0200 |
commit | a4492d67fed157533a362f932c6ca8bbdf3d1bec (patch) | |
tree | 34825382b250397fbe42b9672581153dd3868cbf /erts | |
parent | ed3e37d61b7917a380371dc7ebce74e80fb32dfe (diff) | |
download | otp-a4492d67fed157533a362f932c6ca8bbdf3d1bec.tar.gz otp-a4492d67fed157533a362f932c6ca8bbdf3d1bec.tar.bz2 otp-a4492d67fed157533a362f932c6ca8bbdf3d1bec.zip |
Fixed #Ref ordering bug
Diffstat (limited to 'erts')
-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 d90c282c7e..a9447e3ce3 100644 --- a/erts/emulator/beam/utils.c +++ b/erts/emulator/beam/utils.c @@ -3429,7 +3429,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)) { |