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 16aef10 commit 3a023a5Copy full SHA for 3a023a5
iter_float.go
@@ -214,14 +214,12 @@ func (iter *Iterator) ReadFloat64() (ret float64) {
214
}
215
216
func (iter *Iterator) readPositiveFloat64() (ret float64) {
217
- value := uint64(0)
218
- c := byte(' ')
219
i := iter.head
220
// first char
221
if i == iter.tail {
222
return iter.readFloat64SlowPath()
223
224
- c = iter.buf[i]
+ c := iter.buf[i]
225
i++
226
ind := floatDigits[c]
227
switch ind {
@@ -244,7 +242,7 @@ func (iter *Iterator) readPositiveFloat64() (ret float64) {
244
242
return
245
243
246
247
- value = uint64(ind)
+ value := uint64(ind)
248
// chars before dot
249
non_decimal_loop:
250
for ; i < iter.tail; i++ {
0 commit comments