make JS tests green again

This commit is contained in:
Araq 2017-12-15 11:34:17 +01:00
commit 8decf0f5ce
2 changed files with 2 additions and 2 deletions

View file

@ -2252,7 +2252,7 @@ proc gen(p: PProc, n: PNode, r: var TCompRes) =
case n.kind
of nkSym:
genSym(p, n, r)
of nkCharLit..nkUInt32Lit:
of nkCharLit..nkUInt64Lit:
if n.typ.kind == tyBool:
r.res = if n.intVal == 0: rope"false" else: rope"true"
else: