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
This commit is contained in:
parent
32b74c9e1d
commit
2621bd1bac
2 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
c201fa2a684ada551ca9a0825a3075a0a69498de
|
081ec9824a74ec9d82628d8d2f6b9a7a4c35a529
|
||||||
|
|
||||||
The first line of this file holds the git revision number of the last
|
The first line of this file holds the git revision number of the last
|
||||||
merge done from the gofrontend repository.
|
merge done from the gofrontend repository.
|
||||||
|
|
|
@ -24,7 +24,7 @@ func Errstr(errnum int) string {
|
||||||
}
|
}
|
||||||
return string(b[:i])
|
return string(b[:i])
|
||||||
}
|
}
|
||||||
if errno != ERANGE {
|
if Errno(errno) != ERANGE {
|
||||||
return "strerror_r failure"
|
return "strerror_r failure"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue