aboutsummaryrefslogtreecommitdiff
path: root/src/jsifier.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-04-27 19:55:48 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-04-29 13:02:32 -0700
commit7fd6c8e2336abafc43c9d781742fe51aa8cf17ab (patch)
treeeddb3a6709c47655c2f76ddb7eb164dba48b4f22 /src/jsifier.js
parentc0db96243a996dcea6c087176746effbcd60e5cf (diff)
fix va_arg
Diffstat (limited to 'src/jsifier.js')
-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) + ')';