From a4dff1a03e514946b419fd9af0ac08b7a4b40a50 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Mon, 19 Aug 2024 20:58:44 +0800 Subject: [PATCH] fixes for 32bit system (#23980) --- compiler/semfold.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/semfold.nim b/compiler/semfold.nim index 450ae70fbb..b2105830e3 100644 --- a/compiler/semfold.nim +++ b/compiler/semfold.nim @@ -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: