diff options
Diffstat (limited to 'compiler/semexprs.nim')
-rwxr-xr-x | compiler/semexprs.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim index 501b7ed72..22af8b4e0 100755 --- a/compiler/semexprs.nim +++ b/compiler/semexprs.nim @@ -1302,6 +1302,7 @@ proc semExpr(c: PContext, n: PNode, flags: TExprFlags = {}): PNode = of nkNilLit: result.typ = getSysType(tyNil) of nkIntLit: + # XXX this is stupid: if result.typ == nil: let i = result.intVal if i >= low(int32) and i <= high(int32): |