]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Added a cast to stop a warning.
authorhiro <hiro>
Tue, 9 Oct 2007 03:31:29 +0000 (03:31 +0000)
committerhiro <hiro>
Tue, 9 Oct 2007 03:31:29 +0000 (03:31 +0000)
tos/lib/tossim/sf/Throttle.cpp

index 4061e54b16f2e4520385945fe2b4dbf16c6a251e..2a5350c0c4b22c20ba9e8388b1f281a4bb1b8def 100644 (file)
@@ -59,7 +59,7 @@ void Throttle::finalize() {
 void Throttle::checkThrottle() {
     
     double secondsElasped = getTime() - simStartTime;
-    sim_time_t ticksElasped = secondsElasped*sim->ticksPerSecond();
+    sim_time_t ticksElasped = (sim_time_t) secondsElasped*sim->ticksPerSecond();
 
     sim_time_t difference = sim->time() - ticksElasped;