diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-11-26 11:12:51 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-11-26 11:16:12 -0800 |
commit | 29906a675d9da025fc428d1cb95ed1a0f7bfb691 (patch) | |
tree | 1581dd68108d1b749dc17d33a0df0d495f5b5ffc /src | |
parent | 37d83ff57f5ddcf584e93695cadba623614b1fdc (diff) |
parse hex floats in vector literals
Diffstat (limited to 'src')
-rw-r--r-- | src/parseTools.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index 08cf9b60..134cb89a 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -603,10 +603,11 @@ function parseLLVMSegment(segment) { type = segment[0].text; if (type[type.length-1] === '>' && segment[1].text[0] === '<') { // vector literal + var nativeType = getVectorNativeType(type); return { intertype: 'vector', idents: splitTokenList(segment[1].tokens).map(function(pair) { - return pair[1].text; + return parseNumerical(pair[1].text, nativeType); }), type: type }; |