diff options
| author | cuishuang <imcusg@gmail.com> | 2025-10-05 15:42:14 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-10-09 11:10:29 -0700 |
| commit | 0b7aa0cfb07b6b13ead990b67cb3cb8639871f90 (patch) | |
| tree | c81e419267045e797a0c0cf2dd0bc02e22f1d688 /ssh/messages.go | |
| parent | 1faea2975ced2153e5086c1ee135f983db10150a (diff) | |
| download | go-x-crypto-0b7aa0cfb07b6b13ead990b67cb3cb8639871f90.tar.xz | |
ssh: use reflect.TypeFor instead of reflect.TypeOf
For golang/go#60088.
Change-Id: I58994c469a2793516214ab1a0072fb6137afc46e
Reviewed-on: https://go-review.googlesource.com/c/crypto/+/709156
Auto-Submit: Sean Liao <sean@liao.dev>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Nicola Murino <nicola.murino@gmail.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Sean Liao <sean@liao.dev>
Diffstat (limited to 'ssh/messages.go')
| -rw-r--r-- | ssh/messages.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssh/messages.go b/ssh/messages.go index 251b9d0..ab22c3d 100644 --- a/ssh/messages.go +++ b/ssh/messages.go @@ -792,7 +792,7 @@ func marshalString(to []byte, s []byte) []byte { return to[len(s):] } -var bigIntType = reflect.TypeOf((*big.Int)(nil)) +var bigIntType = reflect.TypeFor[*big.Int]() // Decode a packet into its corresponding message. func decode(packet []byte) (interface{}, error) { |
