Skip to content

Commit 4b8b8fb

Browse files
ringaboutnarimiran
authored andcommitted
fixes for 32bit system (#23980)
(cherry picked from commit a4dff1a)
1 parent 3214174 commit 4b8b8fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/semfold.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ proc foldConv(n, a: PNode; idgen: IdGenerator; g: ModuleGraph; check = false): P
410410
of tyChar, tyUInt..tyUInt64, tyInt..tyInt64:
411411
var val = a.getOrdValue
412412
if dstTyp.kind in {tyUInt..tyUInt64}:
413-
result = newIntNodeT(maskBytes(val, getSize(g.config, dstTyp)), n, idgen, g)
413+
result = newIntNodeT(maskBytes(val, int getSize(g.config, dstTyp)), n, idgen, g)
414414
result.transitionIntKind(nkUIntLit)
415415
else:
416416
if check: rangeCheck(n, val, g)

0 commit comments

Comments
 (0)