From 07882dcd7d2e2b7708692b06eab8ff061b3b99eb Mon Sep 17 00:00:00 2001 From: Roger Hughston Date: Thu, 10 May 2007 08:36:34 +0000 Subject: [PATCH] Casting out a warning on osx --- panda/src/nativenet/time_span.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/panda/src/nativenet/time_span.h b/panda/src/nativenet/time_span.h index 642ad3b0ea..d703b838ad 100755 --- a/panda/src/nativenet/time_span.h +++ b/panda/src/nativenet/time_span.h @@ -90,8 +90,8 @@ inline Time_Span::Time_Span(time_t time) ////////////////////////////////////////////////////////////// inline Time_Span::Time_Span(float Seconds) { - _my_time.tv_sec = Seconds; // this truncats .. desired result.. - _my_time.tv_usec = (Seconds - (double)_my_time.tv_sec) * (double)USEC; + _my_time.tv_sec = (long)Seconds; // this truncats .. desired result.. + _my_time.tv_usec = (long)((Seconds - (double)_my_time.tv_sec) * (double)USEC); } ////////////////////////////////////////////////////////////// // Function name : Time_Span::Time_Span