Red Hat Linux
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
You seem to have CSS turned off.
Please don't fill out this field.
Briefly describe the problem (required):
Please provide the ad click URL, if possible:
Date: 2008-06-21 10:03:58 -0700 (Sat, 21 Jun 2008)
applied Gil's patch to stop overflow in RealTimeNow
--- code/stage/branches/stage-ros/libstage/world.cc 2008-06-21 16:23:09 UTC (rev 6661)
+++ code/stage/branches/stage-ros/libstage/world.cc 2008-06-21 17:03:58 UTC (rev 6662)
@@ -325,7 +325,9 @@
struct timeval tv;
gettimeofday( &tv, NULL ); // slow system call: use sparingly
- return( tv.tv_sec*1000000 + tv.tv_usec );
+ // Implicit cast causes overflow
+ //return( tv.tv_sec*1000000 + tv.tv_usec );
+ return( ((stg_usec_t)tv.tv_sec)*1000000 + tv.tv_usec );
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Sign up for the SourceForge newsletter: