should fix the nkExprColonExpr bug in the vm
This commit is contained in:
parent
3270676e77
commit
2fc84325c7
4 changed files with 18 additions and 11 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue