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
$ git clone https://git.sr.ht/~sircmpwn/go-libvterm
...
$ cd go-libvterm
$ git checkout 75984434
...
$ go1.12.2 build
$ go build
# git.sr.ht/~sircmpwn/go-libvterm
./vterm.go:215:8: cannot use _Ctype_uchar(r) (type _Ctype_uchar) as type uint8 in assignment
./vterm.go:216:10: cannot use _Ctype_uchar(g) (type _Ctype_uchar) as type uint8 in assignment
./vterm.go:217:9: cannot use _Ctype_uchar(b) (type _Ctype_uchar) as type uint8 in assignment
What did you expect to see?
No errors from the go tip build.
What did you see instead?
An error caused by stricter C type checks.
Note that the cgo error is technically correct: the correct type of the VTermColor fields is indeed uint8_t, not uchar. I'm filing this to make sure the tighter checks are deliberate.
The text was updated successfully, but these errors were encountered:
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Only with tip.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
No errors from the go tip build.
What did you see instead?
An error caused by stricter C type checks.
Note that the cgo error is technically correct: the correct type of the VTermColor fields is indeed uint8_t, not uchar. I'm filing this to make sure the tighter checks are deliberate.
The text was updated successfully, but these errors were encountered: