mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-03 02:18:00 +00:00
fix nimsuggest deprecation warnings (#12772)
This commit is contained in:
committed by
Andreas Rumpf
parent
b6b8d540e3
commit
0d022622e3
@@ -534,10 +534,10 @@ proc toPretty(result: var string, node: SexpNode, indent = 2, ml = true,
|
||||
result.add(escapeJson(node.str))
|
||||
of SInt:
|
||||
if lstArr: result.indent(currIndent)
|
||||
result.add(node.num)
|
||||
result.addInt(node.num)
|
||||
of SFloat:
|
||||
if lstArr: result.indent(currIndent)
|
||||
result.add(node.fnum)
|
||||
result.addFloat(node.fnum)
|
||||
of SNil:
|
||||
if lstArr: result.indent(currIndent)
|
||||
result.add("nil")
|
||||
|
||||
Reference in New Issue
Block a user