aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2015-12-10 11:27:50 +0100
committerLukas Larsson <[email protected]>2016-04-15 14:53:09 +0200
commitfa2f841dc17da2704c2307b6f04aaee85de2366d (patch)
treebf50498df4de56fd1e52b523caa155b4bd4e1b80 /erts/emulator
parent67df3b3792857a2b4885c0acbeaa7f32f3594b0c (diff)
downloadotp-fa2f841dc17da2704c2307b6f04aaee85de2366d.tar.gz
otp-fa2f841dc17da2704c2307b6f04aaee85de2366d.tar.bz2
otp-fa2f841dc17da2704c2307b6f04aaee85de2366d.zip
erts: Calculate flatmap value offset
Diffstat (limited to 'erts/emulator')
-rw-r--r--erts/emulator/beam/erl_map.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_map.h b/erts/emulator/beam/erl_map.h
index a40070d00d..7af9100906 100644
--- a/erts/emulator/beam/erl_map.h
+++ b/erts/emulator/beam/erl_map.h
@@ -66,7 +66,7 @@ typedef struct flatmap_s {
/* erl_term.h stuff */
-#define flatmap_get_values(x) (((Eterm *)(x)) + 3)
+#define flatmap_get_values(x) (((Eterm *)(x)) + sizeof(flatmap_t)/sizeof(Eterm))
#define flatmap_get_keys(x) (((Eterm *)tuple_val(((flatmap_t *)(x))->keys)) + 1)
#define flatmap_get_size(x) (((flatmap_t*)(x))->size)