Skip to content

Fix time type when build with _TIME_BITS=64 on 32bit arch#52

Merged
mosajjal merged 1 commit intogopacket:masterfrom
zhsj:time64
Apr 6, 2024
Merged

Fix time type when build with _TIME_BITS=64 on 32bit arch#52
mosajjal merged 1 commit intogopacket:masterfrom
zhsj:time64

Conversation

@zhsj
Copy link
Copy Markdown
Contributor

@zhsj zhsj commented Mar 28, 2024

Otherwise it results

# github.com/gopacket/gopacket/pcap
src/github.com/gopacket/gopacket/pcap/pcap_unix.go:345:18: cannot use _Ctype_gopacket_time_secs_t(ci.Timestamp.Unix()) (value of type _Ctype_long) as _Ctype_longlong value in assignment
src/github.com/gopacket/gopacket/pcap/pcap_unix.go:346:19: cannot use _Ctype_gopacket_time_usecs_t(ci.Timestamp.Nanosecond() / 1000) (value of type _Ctype_long) as _Ctype_longlong value in assignment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants