aboutsummaryrefslogtreecommitdiff
path: root/src/preamble.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/preamble.js')
-rw-r--r--src/preamble.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/preamble.js b/src/preamble.js
index fe6fc7ae..8feb43e9 100644
--- a/src/preamble.js
+++ b/src/preamble.js
@@ -376,7 +376,7 @@ function allocate(slab, types, allocator) {
#endif
setValue(ret+i, curr, type);
- i += Runtime.getNativeFieldSize(type, true);
+ i += Runtime.getNativeTypeSize(type);
}
return ret;