diff options
author | Alon Zakai <azakai@mozilla.com> | 2010-11-13 19:49:48 -0800 |
---|---|---|
committer | Alon Zakai <azakai@mozilla.com> | 2010-11-13 19:49:48 -0800 |
commit | 98a5011896379e539b2cb4c5ab1599294d278737 (patch) | |
tree | decc86c2f94c070f72f6a351067c57a5c2eafc9a /src/jsifier.js | |
parent | 268226c46c7f10d303d121e228f4798ad7c630a2 (diff) |
fix for global constant pointers to pointers
Diffstat (limited to 'src/jsifier.js')
-rw-r--r-- | src/jsifier.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index ab4df579..5cf3d5d1 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -137,7 +137,7 @@ function JSify(data) { // Gets an entire constant expression function parseConst(value, type) { //dprint('gconst', '//yyyyy ' + JSON.stringify(value) + ',' + type + '\n'); - if (Runtime.isNumberType(type) || pointingLevels(type) == 1) { + if (Runtime.isNumberType(type) || pointingLevels(type) >= 1) { return makePointer(indexizeFunctions(parseNumerical(toNiceIdent(value.text))), null, 'ALLOC_STATIC', type); } else if (value.text == 'zeroinitializer') { return makePointer(JSON.stringify(makeEmptyStruct(type)), null, 'ALLOC_STATIC', type); |