aboutsummaryrefslogtreecommitdiff
path: root/src/runtime.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime.js')
-rw-r--r--src/runtime.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime.js b/src/runtime.js
index d023d409..db334669 100644
--- a/src/runtime.js
+++ b/src/runtime.js
@@ -176,10 +176,10 @@ var Runtime = {
STACK_ALIGN: {{{ STACK_ALIGN }}},
// type can be a native type or a struct (or null, for structs we only look at size here)
- getAlignSize: function(type, size) {
+ getAlignSize: function(type, size, vararg) {
// we align i64s and doubles on 64-bit boundaries, unlike x86
#if TARGET_LE32
- if (type == 'i64' || type == 'double') return 8;
+ if (type == 'i64' || type == 'double' || vararg) return 8;
#endif
return Math.min(size || (type ? Runtime.getNativeFieldSize(type) : 0), Runtime.QUANTUM_SIZE);
},