You've already forked json-iterator
							
							
				mirror of
				https://github.com/json-iterator/go.git
				synced 2025-10-31 00:07:40 +02:00 
			
		
		
		
	clean readPositiveFloat64
This commit is contained in:
		| @@ -214,14 +214,12 @@ func (iter *Iterator) ReadFloat64() (ret float64) { | ||||
| } | ||||
|  | ||||
| func (iter *Iterator) readPositiveFloat64() (ret float64) { | ||||
| 	value := uint64(0) | ||||
| 	c := byte(' ') | ||||
| 	i := iter.head | ||||
| 	// first char | ||||
| 	if i == iter.tail { | ||||
| 		return iter.readFloat64SlowPath() | ||||
| 	} | ||||
| 	c = iter.buf[i] | ||||
| 	c := iter.buf[i] | ||||
| 	i++ | ||||
| 	ind := floatDigits[c] | ||||
| 	switch ind { | ||||
| @@ -244,7 +242,7 @@ func (iter *Iterator) readPositiveFloat64() (ret float64) { | ||||
| 			return | ||||
| 		} | ||||
| 	} | ||||
| 	value = uint64(ind) | ||||
| 	value := uint64(ind) | ||||
| 	// chars before dot | ||||
| non_decimal_loop: | ||||
| 	for ; i < iter.tail; i++ { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user