diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2024-08-19 20:58:44 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-19 20:58:44 +0800 |
commit | a4dff1a03e514946b419fd9af0ac08b7a4b40a50 (patch) | |
tree | 62fdc9af06c03d840a8f890a3e7e175550bbd705 | |
parent | 2e4d344b43b040a4dce2c478ca13e49979e491fc (diff) | |
download | Nim-a4dff1a03e514946b419fd9af0ac08b7a4b40a50.tar.gz |
fixes for 32bit system (#23980)
-rw-r--r-- | compiler/semfold.nim | 2 |
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: |