1
0
mirror of https://github.com/json-iterator/go.git synced 2025-11-26 22:40:13 +02:00

fix #317, try parse as BigFloat if overflow

This commit is contained in:
Tao Wen
2018-11-12 14:45:56 +08:00
parent 05d041de10
commit d05f387f50
2 changed files with 15 additions and 2 deletions

View File

@@ -17,5 +17,8 @@ func init() {
unmarshalCases = append(unmarshalCases, unmarshalCase{
ptr: (*json.RawMessage)(nil),
input: `[1,2,3]`,
}, unmarshalCase{
ptr: (*json.RawMessage)(nil),
input: `1.122e+250`,
})
}