[Box Backup-commit] COMMIT r2816 - box/invisnet/vs2010/0.11/lib/common

subversion at boxbackup.org subversion at boxbackup.org
Wed Dec 1 13:21:50 GMT 2010


Author: invisnet
Date: 2010-12-01 13:21:50 +0000 (Wed, 01 Dec 2010)
New Revision: 2816

Modified:
   box/invisnet/vs2010/0.11/lib/common/BoxTimeToUnix.h
Log:
Wrong cast.

Modified: box/invisnet/vs2010/0.11/lib/common/BoxTimeToUnix.h
===================================================================
--- box/invisnet/vs2010/0.11/lib/common/BoxTimeToUnix.h	2010-12-01 12:25:31 UTC (rev 2815)
+++ box/invisnet/vs2010/0.11/lib/common/BoxTimeToUnix.h	2010-12-01 13:21:50 UTC (rev 2816)
@@ -26,7 +26,7 @@
 
 inline void BoxTimeToTimespec(box_time_t Time, struct timespec &tv)
 {
-	tv.tv_sec = (time_t)(Time / MICRO_SEC_IN_SEC_LL);
+	tv.tv_sec = (long)(Time / MICRO_SEC_IN_SEC_LL);
 	tv.tv_nsec = ((long)(Time % MICRO_SEC_IN_SEC_LL)) * NANO_SEC_IN_USEC;
 }
 




More information about the Boxbackup-commit mailing list