diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-12-16 18:03:23 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-12-16 18:03:23 -0800 |
commit | 11fc948b1c884d4b7d7b78694a44097ef2015af3 (patch) | |
tree | 5d0a84e7008d63a433e9eb9ff6aea704c59f8278 | |
parent | 49e00037f0d7adefe33fd8f0b967b1920a89e5cc (diff) |
fix varargs signature generation, '...' is optional and both cases must be handled; fixes #1918
-rw-r--r-- | src/modules.js | 4 |
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); } } |