Skip to content
Snippets Groups Projects
Commit 2621bd1b authored by Ian Lance Taylor's avatar Ian Lance Taylor
Browse files

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
parent 32b74c9e
No related branches found
No related tags found
No related merge requests found
c201fa2a684ada551ca9a0825a3075a0a69498de
081ec9824a74ec9d82628d8d2f6b9a7a4c35a529
The first line of this file holds the git revision number of the last
merge done from the gofrontend repository.
......@@ -24,7 +24,7 @@ func Errstr(errnum int) string {
}
return string(b[:i])
}
if errno != ERANGE {
if Errno(errno) != ERANGE {
return "strerror_r failure"
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment