summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2024-08-19 20:58:44 +0800
committerGitHub <noreply@github.com>2024-08-19 20:58:44 +0800
commita4dff1a03e514946b419fd9af0ac08b7a4b40a50 (patch)
tree62fdc9af06c03d840a8f890a3e7e175550bbd705
parent2e4d344b43b040a4dce2c478ca13e49979e491fc (diff)
downloadNim-a4dff1a03e514946b419fd9af0ac08b7a4b40a50.tar.gz
fixes for 32bit system (#23980)
-rw-r--r--compiler/semfold.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semfold.nim b/compiler/semfold.nim
index 450ae70fb..b2105830e 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: