diff options
author | kinggo <lilong.21@bytedance.com> | 2022-11-18 14:13:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-18 08:13:18 +0200 |
commit | 7b3bf58850065a933102f81405a39d0be02a9e2f (patch) | |
tree | a71279dd33a82e525ea27cd842cce57bc9d0e1c6 /bytesconv.go | |
parent | Wait for the response of pipelineWork in background and return it to pool (#1... (diff) | |
download | fasthttp-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.go | 2 |
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 } |