]> Cypherpunks repositories - gostls13.git/commit
encoding/json: make use of reflect.Type.{OverflowInt, OverflowUint}
authorJes Cok <xigua67damn@gmail.com>
Wed, 28 Feb 2024 23:50:37 +0000 (23:50 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 29 Feb 2024 18:45:05 +0000 (18:45 +0000)
commit2c3ea847124ae35f07ca764b59965a78bc59b2ab
tree5fde85e6bc8a8b035396afc6cba8580e32469771
parent038fbf9f285d09663670d7cbc9a0185e06bf5e2f
encoding/json: make use of reflect.Type.{OverflowInt, OverflowUint}

CL 567296 added {OverflowComplex, OverflowFloat, OverflowInt, OverflowUint}
to reflect.Type, this CL uses these methods to simplify code.

For #60427

Change-Id: I229aef9e4095a2f025afd782081f6c9e6d7710f3
GitHub-Last-Rev: c824e5a1b5547e2cc23142fbcf0d6dd59f0e8506
GitHub-Pull-Request: golang/go#66000
Reviewed-on: https://go-review.googlesource.com/c/go/+/567775
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Joseph Tsai <joetsai@digital-static.net>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/encoding/json/decode.go