aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-12-16 18:03:23 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-12-16 18:03:23 -0800
commit11fc948b1c884d4b7d7b78694a44097ef2015af3 (patch)
tree5d0a84e7008d63a433e9eb9ff6aea704c59f8278
parent49e00037f0d7adefe33fd8f0b967b1920a89e5cc (diff)
fix varargs signature generation, '...' is optional and both cases must be handled; fixes #1918
-rw-r--r--src/modules.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules.js b/src/modules.js
index 3e7405f8..e2d3433f 100644
--- a/src/modules.js
+++ b/src/modules.js
@@ -284,8 +284,8 @@ var Functions = {
var chunks = getNumIntChunks(type);
if (chunks > 0) {
for (var j = 0; j < chunks; j++) sig += 'i';
- } else {
- // some special type like a SIMD vector
+ } else if (type !== '...') {
+ // some special type like a SIMD vector (anything but varargs, which we handle below)
sig += Functions.getSignatureLetter(type);
}
}