Merge branch 'devel' of https://github.com/nim-lang/Nim into devel
This commit is contained in:
commit
dda01cb726
13 changed files with 218 additions and 1099 deletions
|
|
@ -1636,7 +1636,10 @@ proc gen(p: PProc, n: PNode, r: var TCompRes) =
|
|||
of nkSym:
|
||||
genSym(p, n, r)
|
||||
of nkCharLit..nkInt64Lit:
|
||||
r.res = rope(n.intVal)
|
||||
if n.typ.kind == tyBool:
|
||||
r.res = if n.intVal == 0: rope"false" else: rope"true"
|
||||
else:
|
||||
r.res = rope(n.intVal)
|
||||
r.kind = resExpr
|
||||
of nkNilLit:
|
||||
if isEmptyType(n.typ):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue