ptp_clock: fix build on windows

c_ulong/gulong can be 32bit or 64bit depending on the platform.
Always cast it to u64 so the compiler will be happy.
This commit is contained in:
Jordan Petridis 2022-05-18 19:38:49 +03:00
parent 4d7bd9bfcb
commit 7075a4b3ea

View file

@ -88,7 +88,7 @@ impl PtpClock {
);
assert_ne!(id, 0);
PtpStatisticsCallback(NonZeroU64::new_unchecked(id))
PtpStatisticsCallback(NonZeroU64::new_unchecked(id as u64))
}
}
}