Force condition to be bool in iulia mode.

This commit is contained in:
chriseth
2017-11-23 18:52:04 +01:00
parent 9232cd2621
commit 1d91b65b72
2 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -252,7 +252,7 @@ We will use a destructuring notation for the AST nodes.
G, L, continue
E(G, L, <if condition body>: If) =
let G0, L0, v = E(G, L, condition)
if v is true or non-zero:
if v is true:
E(G0, L0, body)
else:
G0, L0, regular