aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2011-05-05 16:02:28 +0200
committerSverker Eriksson <[email protected]>2011-05-06 16:31:25 +0200
commit7f8b2825eed8e45b1cabc766bc7f6fce78700073 (patch)
tree6dbda93643b9afcb22cf7dd88d5df8585db13903
parent67992620807364ae8a256e63d4804b81afa2c379 (diff)
downloadotp-7f8b2825eed8e45b1cabc766bc7f6fce78700073.tar.gz
otp-7f8b2825eed8e45b1cabc766bc7f6fce78700073.tar.bz2
otp-7f8b2825eed8e45b1cabc766bc7f6fce78700073.zip
Another halfword is_same-bug for ETS ordered_set
This one is less likely to provoke error as one of the terms is always NULL-based.
-rw-r--r--erts/emulator/beam/erl_db_tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_db_tree.c b/erts/emulator/beam/erl_db_tree.c
index a59c0c258d..63cc311181 100644
--- a/erts/emulator/beam/erl_db_tree.c
+++ b/erts/emulator/beam/erl_db_tree.c
@@ -2694,7 +2694,7 @@ static Sint do_cmp_partly_bound(Eterm a, Eterm b, Eterm* b_base, int *done)
while (1) {
if ((j = do_cmp_partly_bound(*aa++, *bb++, b_base, done)) != 0 || *done)
return j;
- if (*aa==*bb)
+ if (is_same(*aa, NULL, *bb, b_base))
return 0;
if (is_not_list(*aa) || is_not_list(*bb))
return do_cmp_partly_bound(*aa, *bb, b_base, done);