Fixed minor problem in case operator.
h3rald h3rald@h3rald.com
Sun, 06 Nov 2016 11:40:47 +0100
1 files changed,
1 insertions(+),
2 deletions(-)
jump to
M
lib/min_lang.nim
→
lib/min_lang.nim
@@ -551,8 +551,7 @@ # ) case
.symbol("case") do (i: In): var cases: MinValue i.reqQuotation cases - let last = cases.qVal.len-1 - if last == 0: + if cases.qVal.len == 0: raiseInvalid("Empty case operator") var k = 0 let stack = i.stack