From 7075a4b3ea1e354c64a950dbb48bb865e193d1bd Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Wed, 18 May 2022 19:38:49 +0300 Subject: [PATCH] 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. --- gstreamer-net/src/ptp_clock.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gstreamer-net/src/ptp_clock.rs b/gstreamer-net/src/ptp_clock.rs index 18f1a7823..32eb06557 100644 --- a/gstreamer-net/src/ptp_clock.rs +++ b/gstreamer-net/src/ptp_clock.rs @@ -88,7 +88,7 @@ impl PtpClock { ); assert_ne!(id, 0); - PtpStatisticsCallback(NonZeroU64::new_unchecked(id)) + PtpStatisticsCallback(NonZeroU64::new_unchecked(id as u64)) } } }