]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
syscall: add missing type conversion
authorIan Lance Taylor <iant@golang.org>
Thu, 19 Oct 2023 23:46:14 +0000 (16:46 -0700)
committerIan Lance Taylor <iant@golang.org>
Mon, 23 Oct 2023 21:03:10 +0000 (14:03 -0700)
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

index 398d2671b64d586576cc91626c7978c85cdc4064..0f961157dfd1c343bf1980ca471928c0d2d19d97 100644 (file)
@@ -1,4 +1,4 @@
-c201fa2a684ada551ca9a0825a3075a0a69498de
+081ec9824a74ec9d82628d8d2f6b9a7a4c35a529
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
index 9f688e2a0c7b8750a757618e5df775652b8e44e2..02f228adc59dabfe7e7cf0f7b55c61b162dc2a11 100644 (file)
@@ -24,7 +24,7 @@ func Errstr(errnum int) string {
                        }
                        return string(b[:i])
                }
-               if errno != ERANGE {
+               if Errno(errno) != ERANGE {
                        return "strerror_r failure"
                }
        }