syscall: add missing type conversion
commit2621bd1bac614b63e52d0deb4ab2ff287a9fafa8
authorIan Lance Taylor <iant@golang.org>
Thu, 19 Oct 2023 23:46:14 +0000 (19 16:46 -0700)
committerIan Lance Taylor <iant@golang.org>
Mon, 23 Oct 2023 21:03:10 +0000 (23 14:03 -0700)
tree19af26bacbb783cc5051ac47bede560731f2148d
parent32b74c9e1d46932a4bbb1f46353bfc43c702c20a
syscall: add missing type conversion

The gofrontend incorrectly accepted code that was missing a type conversion.
The test case for this is bug518.go in https://go.dev/cl/536537.
Future CLs in this series will detect the type error.

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/536638
gcc/go/gofrontend/MERGE
libgo/go/syscall/errstr.go