diff options
Diffstat (limited to 'src/lib/fmt')
-rw-r--r-- | src/lib/fmt/format.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/fmt/format.go b/src/lib/fmt/format.go index 14c5043ac..ce5050371 100644 --- a/src/lib/fmt/format.go +++ b/src/lib/fmt/format.go @@ -222,7 +222,7 @@ func (f *Fmt) integer(a int64, base uint, is_signed bool, digits *string) string buf[i] = ' '; i--; } - return string(buf)[i+1:nByte]; + return string(buf[i+1:nByte]); } // Fmt_d64 formats an int64 in decimal. |