You've already forked json-iterator
							
							
				mirror of
				https://github.com/json-iterator/go.git
				synced 2025-10-31 00:07:40 +02:00 
			
		
		
		
	| @@ -288,6 +288,9 @@ non_decimal_loop: | ||||
| 				return iter.readFloat64SlowPath() | ||||
| 			} | ||||
| 			value = (value << 3) + (value << 1) + uint64(ind) | ||||
| 			if value > maxFloat64 { | ||||
| 				return iter.readFloat64SlowPath() | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| 	return iter.readFloat64SlowPath() | ||||
|   | ||||
| @@ -9,6 +9,7 @@ var intDigits []int8 | ||||
|  | ||||
| const uint32SafeToMultiply10 = uint32(0xffffffff)/10 - 1 | ||||
| const uint64SafeToMultiple10 = uint64(0xffffffffffffffff)/10 - 1 | ||||
| const maxFloat64 = 1<<53 - 1 | ||||
|  | ||||
| func init() { | ||||
| 	intDigits = make([]int8, 256) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user