aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/external.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2015-03-24 15:27:11 +0100
committerSverker Eriksson <[email protected]>2015-03-24 20:04:16 +0100
commitdb54eaa94562b49c81b677948a8e9139ebdb010e (patch)
tree957ef209b525c522eee9e2116efd843d257aa204 /erts/emulator/beam/external.c
parent1f23b603f022c7345dd573bf917926a575ae030d (diff)
downloadotp-db54eaa94562b49c81b677948a8e9139ebdb010e.tar.gz
otp-db54eaa94562b49c81b677948a8e9139ebdb010e.tar.bz2
otp-db54eaa94562b49c81b677948a8e9139ebdb010e.zip
erts: Remove HAMT_SUBTAG_NODE_ARRAY
This will also fix a bug in term_to_binary treating full nodes as tuples and emiting LIST_EXT for leafs.
Diffstat (limited to 'erts/emulator/beam/external.c')
-rw-r--r--erts/emulator/beam/external.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/erts/emulator/beam/external.c b/erts/emulator/beam/external.c
index c99b60ed09..b0b232f185 100644
--- a/erts/emulator/beam/external.c
+++ b/erts/emulator/beam/external.c
@@ -2633,8 +2633,6 @@ enc_term_int(TTBEncodeContext* ctx, ErtsAtomCacheMap *acmp, Eterm obj, byte* ep,
*ep++ = MAP_EXT;
ptr++;
put_int32(*ptr, ep); ep += 4;
- /*fall through*/
- case HAMT_SUBTAG_NODE_ARRAY:
node_sz = 16;
break;
case HAMT_SUBTAG_HEAD_BITMAP:
@@ -4172,8 +4170,8 @@ encode_size_struct_int(TTBSizeContext* ctx, ErtsAtomCacheMap *acmp, Eterm obj,
hdr = *ptr;
ASSERT(is_header(hdr));
switch(hdr & _HEADER_MAP_SUBTAG_MASK) {
- case HAMT_SUBTAG_HEAD_ARRAY: ptr++;
- case HAMT_SUBTAG_NODE_ARRAY:
+ case HAMT_SUBTAG_HEAD_ARRAY:
+ ptr++;
node_sz = 16;
break;
case HAMT_SUBTAG_HEAD_BITMAP: ptr++;