This commit is contained in:
Ryan Gonzalez 2015-09-23 13:44:45 -05:00
commit a8e547971f

View file

@ -1265,6 +1265,9 @@ proc computeSizeAux(typ: PType, a: var BiggestInt): BiggestInt =
else: result = 8
a = result
of tySet:
if typ.sons[0].kind == tyGenericParam:
result = szUnknownSize
else:
length = lengthOrd(typ.sons[0])
if length <= 8: result = 1
elif length <= 16: result = 2