aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/fsu/parse.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/fsu/parse.go')
-rw-r--r--cmd/fsu/parse.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/fsu/parse.go b/cmd/fsu/parse.go
index d0298357..5ed53f5f 100644
--- a/cmd/fsu/parse.go
+++ b/cmd/fsu/parse.go
@@ -23,7 +23,7 @@ func parseUint32Fast(s string) (int, error) {
for i, ch := range []byte(s) {
ch -= '0'
if ch > 9 {
- return -1, fmt.Errorf("invalid character '%s' at index %d", string([]byte{ch}), i)
+ return -1, fmt.Errorf("invalid character '%s' at index %d", string(ch+'0'), i)
}
n = n*10 + int(ch)
}