aboutsummaryrefslogtreecommitdiff
path: root/src/compiler.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-05-25 15:00:11 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-05-25 15:00:11 -0700
commitd3efb7dcb71f0d9d6df09fee687fa1dbd0bde9bf (patch)
tree19be204e6a786b13d7a1136302e457deca36404e /src/compiler.js
parente1b8b28863ee7fea3117d0d10d7ab0a679dfb8ca (diff)
allow 2 and 3 in SAFE_HEAP and CHECK_* options. 2 is only these, 3 is all but these
Diffstat (limited to 'src/compiler.js')
-rw-r--r--src/compiler.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/compiler.js b/src/compiler.js
index 46d6b5cf..bdfdbba8 100644
--- a/src/compiler.js
+++ b/src/compiler.js
@@ -27,16 +27,16 @@ for (setting in settings) {
}
var CONSTANTS = { 'QUANTUM_SIZE': QUANTUM_SIZE };
-if (CORRECT_SIGNS === 2) {
+if (CORRECT_SIGNS >= 2) {
CORRECT_SIGNS_LINES = set(CORRECT_SIGNS_LINES); // for fast checking
}
-if (CORRECT_OVERFLOWS === 2) {
+if (CORRECT_OVERFLOWS >= 2) {
CORRECT_OVERFLOWS_LINES = set(CORRECT_OVERFLOWS_LINES); // for fast checking
}
-if (CORRECT_ROUNDINGS === 2) {
+if (CORRECT_ROUNDINGS >= 2) {
CORRECT_ROUNDINGS_LINES = set(CORRECT_ROUNDINGS_LINES); // for fast checking
}
-if (SAFE_HEAP === 2) {
+if (SAFE_HEAP >= 2) {
SAFE_HEAP_LINES = set(SAFE_HEAP_LINES); // for fast checking
}