[X] I've thoroughly read the documentations on this issue but still have no clue.
[X] I've searched the current list of Github issues but didn't find any duplicate issues that have been solved.
[X] I've searched the internet with this issue, but haven't found anything helpful.
What happened?
Compilation fails when building kqueue on 32 bit. Only tested while cross-compiling for freebsd-arm.
Look like unix.Kevent_t.Ident is uint32 on 32 bit and therefore the cast fails.
Major version of gnet
v2
Specific version of gnet
2.2.2
Operating system
BSD
Relevant log output
go version: go1.17 linux/amd64
# github.com/panjf2000/gnet/v2/internal/netpoll
internal/netpoll/kqueue_default_poller.go:197:4: cannot use uint64(pa.FD) (type uint64) as type uint32 in field value
internal/netpoll/kqueue_default_poller.go:198:4: cannot use uint64(pa.FD) (type uint64) as type uint32 in field value
internal/netpoll/kqueue_default_poller.go:206:4: cannot use uint64(pa.FD) (type uint64) as type uint32 in field value
internal/netpoll/kqueue_default_poller.go:214:4: cannot use uint64(pa.FD) (type uint64) as type uint32 in field value
internal/netpoll/kqueue_default_poller.go:222:4: cannot use uint64(pa.FD) (type uint64) as type uint32 in field value
internal/netpoll/kqueue_default_poller.go:230:4: cannot use uint64(pa.FD) (type uint64) as type uint32 in field value
Code snippets (optional)
No response
How to Reproduce
Steps to reproduce the behavior:
run GOOS=freebsd GOARCH=arm go1.17 test -c
Does this issue reproduce with the latest release?
Actions I've taken before I'm here
What happened?
Compilation fails when building kqueue on 32 bit. Only tested while cross-compiling for freebsd-arm.
Look like
unix.Kevent_t.Ident
isuint32
on 32 bit and therefore the cast fails.Major version of gnet
v2
Specific version of gnet
2.2.2
Operating system
BSD
Relevant log output
Code snippets (optional)
No response
How to Reproduce
Steps to reproduce the behavior:
GOOS=freebsd GOARCH=arm go1.17 test -c
Does this issue reproduce with the latest release?
It can reproduce with the latest release