fixes for 32bit system (#23980)

This commit is contained in:
ringabout
2024-08-19 20:58:44 +08:00
committed by GitHub
parent 2e4d344b43
commit a4dff1a03e

View File

@@ -421,7 +421,7 @@ proc foldConv(n, a: PNode; idgen: IdGenerator; g: ModuleGraph; check = false): P
of tyChar, tyUInt..tyUInt64, tyInt..tyInt64:
var val = a.getOrdValue
if dstTyp.kind in {tyUInt..tyUInt64}:
result = newIntNodeT(maskBytes(val, getSize(g.config, dstTyp)), n, idgen, g)
result = newIntNodeT(maskBytes(val, int getSize(g.config, dstTyp)), n, idgen, g)
result.transitionIntKind(nkUIntLit)
result.typ = dstTyp
else: