aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/jsifier.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js
index c82d284a..3f47e967 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -1298,7 +1298,7 @@ function JSify(data, functionsOnly, givenFunctions) {
makeFuncLineActor('va_arg', function(item) {
assert(TARGET_LE32);
var ident = item.value.ident;
- var move = Runtime.getNativeTypeSize(item.type);
+ var move = Runtime.STACK_ALIGN;
return '(tempInt=' + makeGetValue(ident, 4, '*') + ',' +
makeSetValue(ident, 4, 'tempInt + ' + move, '*') + ',' +
makeGetValue(makeGetValue(ident, 0, '*'), 'tempInt', item.type) + ')';