We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae4c002 commit 16aef10Copy full SHA for 16aef10
iter_float.go
@@ -77,14 +77,12 @@ func (iter *Iterator) ReadFloat32() (ret float32) {
77
}
78
79
func (iter *Iterator) readPositiveFloat32() (ret float32) {
80
- value := uint64(0)
81
- c := byte(' ')
82
i := iter.head
83
// first char
84
if i == iter.tail {
85
return iter.readFloat32SlowPath()
86
87
- c = iter.buf[i]
+ c := iter.buf[i]
88
i++
89
ind := floatDigits[c]
90
switch ind {
@@ -107,7 +105,7 @@ func (iter *Iterator) readPositiveFloat32() (ret float32) {
107
105
return
108
106
109
110
- value = uint64(ind)
+ value := uint64(ind)
111
// chars before dot
112
non_decimal_loop:
113
for ; i < iter.tail; i++ {
0 commit comments