[Sumover-dev] [svn commit] r4455 - common/trunk/src
sumover-dev at cs.ucl.ac.uk
sumover-dev at cs.ucl.ac.uk
Thu Jun 4 15:03:44 BST 2009
Author: piers
Date: Thu Jun 4 15:03:43 2009
New Revision: 4455
Modified:
common/trunk/src/gettimeofday.c
Log:
Added cast to (long) for conversion from windows time format - to shut up warnings from compiler.
Modified: common/trunk/src/gettimeofday.c
==============================================================================
--- common/trunk/src/gettimeofday.c (original)
+++ common/trunk/src/gettimeofday.c Thu Jun 4 15:03:43 2009
@@ -9,7 +9,7 @@
struct _timeb timebuffer;
_ftime( &timebuffer );
- tp->tv_sec = timebuffer.time;
+ tp->tv_sec = (long)timebuffer.time;
tp->tv_usec = timebuffer.millitm * 1000;
return 0;
}
More information about the Sumover-dev
mailing list