diff options
author | Sverker Eriksson <[email protected]> | 2011-05-05 16:02:28 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2011-05-06 16:31:25 +0200 |
commit | 7f8b2825eed8e45b1cabc766bc7f6fce78700073 (patch) | |
tree | 6dbda93643b9afcb22cf7dd88d5df8585db13903 | |
parent | 67992620807364ae8a256e63d4804b81afa2c379 (diff) | |
download | otp-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.c | 2 |
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); |