diff options
author | flywind <xzsflywind@gmail.com> | 2021-08-24 23:16:12 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-24 17:16:12 +0200 |
commit | 3d1bba04ab1092630983695734d6984ddff4688c (patch) | |
tree | 52e8705778ed757675c3133731a6d8bf46336e26 /compiler/ic/ic.nim | |
parent | 24178bf8aa37c179caab9e16682940e8340f2bfc (diff) | |
download | Nim-3d1bba04ab1092630983695734d6984ddff4688c.tar.gz |
[minor]use `addInt` and `addFloat` (#18733)
* unify int and uint * back * minor
Diffstat (limited to 'compiler/ic/ic.nim')
-rw-r--r-- | compiler/ic/ic.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/ic/ic.nim b/compiler/ic/ic.nim index bd3be27f0..7387d165b 100644 --- a/compiler/ic/ic.nim +++ b/compiler/ic/ic.nim @@ -94,10 +94,10 @@ proc toString*(tree: PackedTree; n: NodePos; m: PackedModule; nesting: int; result.addInt m.numbers[LitId tree.nodes[pos].operand] of externUIntLit: result.add " " - result.add $cast[uint64](m.numbers[LitId tree.nodes[pos].operand]) + result.addInt cast[uint64](m.numbers[LitId tree.nodes[pos].operand]) of nkFloatLit..nkFloat128Lit: result.add " " - result.add $cast[BiggestFloat](m.numbers[LitId tree.nodes[pos].operand]) + result.addFloat cast[BiggestFloat](m.numbers[LitId tree.nodes[pos].operand]) else: result.add "(\n" for i in 1..(nesting+1)*2: result.add ' ' |