mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-18 23:11:36 +00:00
fixes #4975
This commit is contained in:
@@ -592,9 +592,9 @@ proc genEqProc(p: BProc, e: PNode, d: var TLoc) =
|
||||
proc genIsNil(p: BProc, e: PNode, d: var TLoc) =
|
||||
let t = skipTypes(e.sons[1].typ, abstractRange)
|
||||
if t.kind == tyProc and t.callConv == ccClosure:
|
||||
unaryExpr(p, e, d, "$1.ClPrc == 0")
|
||||
unaryExpr(p, e, d, "($1.ClPrc == 0)")
|
||||
else:
|
||||
unaryExpr(p, e, d, "$1 == 0")
|
||||
unaryExpr(p, e, d, "($1 == 0)")
|
||||
|
||||
proc unaryArith(p: BProc, e: PNode, d: var TLoc, op: TMagic) =
|
||||
const
|
||||
|
||||
Reference in New Issue
Block a user