aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--forth.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/forth.js b/forth.js
index 3c7c0d2..5cea76f 100644
--- a/forth.js
+++ b/forth.js
@@ -48,7 +48,7 @@ function forth(print = console.log) {
return localIdx - initialIdx;
}
},
- 'not' : () => { s.push(!s.pop()) },
+ 'not' : () => { s.push(!popNum()) },
'.' : () => { print(s.pop()) },
'peek' : () => { print(s[s.length - 1]) },
'dup' : () => {