sophuwu.site > quickstat
fixed bug where 0 would not be printed
sophuwu sophie@sophuwu.site
Sun, 27 Aug 2023 14:14:07 +0100
commit

f8906c79f46005ffb41f1af0d9a2ca2110cf3c89

parent

9631e69507909ef25850f54bd0991b5000c8a1a3

1 files changed, 3 insertions(+), 0 deletions(-)

jump to
M main.gomain.go

@@ -200,6 +200,9 @@ }

} n = int(f) + n + if n == 0 { + return "0" + } for n > 0 { s = string(n%10+48) + s n /= 10