Skip to content

Commit 0600a3b

Browse files
committed
auto merge of #16201 : erickt/rust/json-ints, r=acrichto
This patch allows json to deserialize integers larger than 2^53 without losing precision. It does this by first keeping the integer portion of a number as a `i64`, and only casting it over to a `f64` if we have a decimal or exponent.
2 parents 51b901e + 9b23287 commit 0600a3b

File tree

2 files changed

+376
-137
lines changed

2 files changed

+376
-137
lines changed

0 commit comments

Comments
 (0)