should fix the nkExprColonExpr bug in the vm

This commit is contained in:
Araq 2014-03-13 02:52:40 +01:00
commit 2fc84325c7
4 changed files with 18 additions and 11 deletions

View file

@ -151,7 +151,7 @@ proc getField(n: PNode; position: int): PSym =
else: discard
proc packObject(x: PNode, typ: PType, res: pointer) =
InternalAssert x.kind in {nkObjConstr, nkPar}
internalAssert x.kind in {nkObjConstr, nkPar}
# compute the field's offsets:
discard typ.getSize
for i in countup(ord(x.kind == nkObjConstr), sonsLen(x) - 1):