aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/utils.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2015-03-11 20:39:08 +0100
committerBjörn-Egil Dahlberg <[email protected]>2015-03-12 19:15:34 +0100
commit81551dd13167b9c4458c4fee7ce08e152f9f5273 (patch)
treeb609eb04cb28d120185d83c60066321b7b9a8def /erts/emulator/beam/utils.c
parentc8f731bfec32a34d49304ea78017b63af053eecd (diff)
downloadotp-81551dd13167b9c4458c4fee7ce08e152f9f5273.tar.gz
otp-81551dd13167b9c4458c4fee7ce08e152f9f5273.tar.bz2
otp-81551dd13167b9c4458c4fee7ce08e152f9f5273.zip
erts: Make hashmap iterator more flexible
to allow mixing of 'next' and 'prev' operations.
Diffstat (limited to 'erts/emulator/beam/utils.c')
-rw-r--r--erts/emulator/beam/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/utils.c b/erts/emulator/beam/utils.c
index cc97e2f3d1..d098ee4c72 100644
--- a/erts/emulator/beam/utils.c
+++ b/erts/emulator/beam/utils.c
@@ -3181,8 +3181,8 @@ tailrecur_ne:
*/
sp = PSTACK_PUSH(hmap_stack);
- hashmap_iterator_init(&stack, a);
- hashmap_iterator_init(&b_stack, b);
+ hashmap_iterator_init(&stack, a, 0);
+ hashmap_iterator_init(&b_stack, b, 0);
sp->ap = hashmap_iterator_next(&stack);
sp->bp = hashmap_iterator_next(&b_stack);
sp->cmp_res = 0;