]> Cypherpunks repositories - gostls13.git/commit
runtime: fix linkname signature for godebug
authorAdin Scannell <ascannell@google.com>
Thu, 23 Feb 2023 22:22:29 +0000 (22:22 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 23 Feb 2023 23:09:10 +0000 (23:09 +0000)
commit52fea4b3d97f741162a38e007aa7cdb5aaf52722
treecf5178a46b2f78986962d19867b89e5b9aeb7f26
parentf98dd299103f66b86bbef402a63a0c6f8fc8b11e
runtime: fix linkname signature for godebug

This signature uses the wrong type for the passed function, which
will be saved in the internal runtime map. Since the functions are
likely compatible (uint64 return versus int64), this may work but
should generally be fixed.

This is other instance of #58440.

Change-Id: Ied82e554745ef72eefeb5be540605809ffa06533
Reviewed-on: https://go-review.googlesource.com/c/go/+/470915
Reviewed-by: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Michael Pratt <mpratt@google.com>
src/internal/godebug/godebug.go