aboutsummaryrefslogtreecommitdiff
path: root/bytesconv.go
diff options
context:
space:
mode:
authorGravatar kinggo <lilong.21@bytedance.com> 2022-11-18 14:13:18 +0800
committerGravatar GitHub <noreply@github.com> 2022-11-18 08:13:18 +0200
commit7b3bf58850065a933102f81405a39d0be02a9e2f (patch)
treea71279dd33a82e525ea27cd842cce57bc9d0e1c6 /bytesconv.go
parentWait for the response of pipelineWork in background and return it to pool (#1... (diff)
downloadfasthttp-7b3bf58850065a933102f81405a39d0be02a9e2f.tar.gz
fasthttp-7b3bf58850065a933102f81405a39d0be02a9e2f.tar.bz2
fasthttp-7b3bf58850065a933102f81405a39d0be02a9e2f.zip
style: modify typo and remove repeated type conversions (#1437)
Diffstat (limited to 'bytesconv.go')
-rw-r--r--bytesconv.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bytesconv.go b/bytesconv.go
index 4759aa6..274082f 100644
--- a/bytesconv.go
+++ b/bytesconv.go
@@ -234,7 +234,7 @@ func ParseUfloat(buf []byte) (float64, error) {
if err != nil {
return -1, errInvalidFloatExponent
}
- return float64(v) * offset * math.Pow10(minus*int(vv)), nil
+ return float64(v) * offset * math.Pow10(minus*vv), nil
}
return -1, errUnexpectedFloatChar
}