You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using C.uchar in code and getting some compilation errors, the error message mentions C.unsignedchar but that doesn't seem the be a valid type.
package main
import "C"
import "fmt"
func main() {
var c C.uchar = "5"
//var c C.unsignedchar = 5
fmt.Println(c)
}
% go run main.go
# command-line-arguments
./main.go:8: cannot use "5" (type string) as type C.unsignedchar in assignment
The text was updated successfully, but these errors were encountered:
Yes, I know that. The example is on purpose to show the error message. The bug is about the error message itself. Type C.unsignedchar doesn't exist, the error message should read "type C.uchar"
ianlancetaylor
changed the title
Some cgo messages mention C.unsignedchar but that is not a valid type
cmd/cgo: some cgo messages mention C.unsignedchar but that is not a valid type
Dec 16, 2015
When using C.uchar in code and getting some compilation errors, the error message mentions C.unsignedchar but that doesn't seem the be a valid type.
The text was updated successfully, but these errors were encountered: