aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/intertyper.js2
-rw-r--r--src/jsifier.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/intertyper.js b/src/intertyper.js
index ca2ad481..6f260c8a 100644
--- a/src/intertyper.js
+++ b/src/intertyper.js
@@ -8,7 +8,7 @@ function intertyper(data) {
substrate = new Substrate('Intertyper');
- var IGNORE_FUNCTIONS = false; // Debugging
+ var IGNORE_FUNCTIONS = 0; // Debugging
// Line splitter.
substrate.addZyme('LineSplitter', {
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);