aboutsummaryrefslogtreecommitdiff
path: root/src/library.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-04-30 15:38:30 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-04-30 15:38:30 -0700
commitd9fd0606a180674d0af87a0e03b09323bde22a11 (patch)
tree41c6286084c4d5446061a4cdd989ec11d1db5fed /src/library.js
parentf786185043c793e9614439d0d57d90f8935a42ce (diff)
fix varargs
Diffstat (limited to 'src/library.js')
-rw-r--r--src/library.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js
index 1c91bb55..ade63d45 100644
--- a/src/library.js
+++ b/src/library.js
@@ -2687,7 +2687,7 @@ LibraryManager.library = {
type = 'i32'; // varargs are always i32, i64, or double
ret = {{{ makeGetValue('varargs', 'argIndex', 'i32', undefined, undefined, true) }}};
}
- argIndex += Runtime.getAlignSize(type, null, true);
+ argIndex += Math.max(Runtime.getNativeFieldSize(type), Runtime.getAlignSize(type, null, true));
return ret;
}