* fixes #9794 * Fix linux test
This commit is contained in:
parent
2ac7f52388
commit
ea5fc9f204
2 changed files with 21 additions and 4 deletions
|
|
@ -310,9 +310,9 @@ proc computeSizeAlign(conf: ConfigRef; typ: PType) =
|
|||
for i in countup(0, sonsLen(typ) - 1):
|
||||
let child = typ.sons[i]
|
||||
computeSizeAlign(conf, child)
|
||||
if child.size == szIllegalRecursion:
|
||||
typ.size = szIllegalRecursion
|
||||
typ.align = szIllegalRecursion
|
||||
if child.size < 0:
|
||||
typ.size = child.size
|
||||
typ.align = child.align
|
||||
return
|
||||
maxAlign = max(maxAlign, child.align)
|
||||
sizeAccum = align(sizeAccum, child.align) + child.size
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue