Try to cast away windows buildbot problems.
authormartinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 3 Sep 2010 16:05:01 +0000 (16:05 +0000)
committermartinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 3 Sep 2010 16:05:01 +0000 (16:05 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34060 f5534014-38df-0310-8fa8-9805f1628bb7

gtk/rlc_lte_stat_dlg.c

index ab8bdec93229f45758c0adcf0974bdda67caa860..c1c98bf71d1540d091f8b93a2db1282bbf4965a9 100644 (file)
@@ -552,8 +552,8 @@ static void invalidate_channel_iters(rlc_lte_stat_t *hs)
 static float calculate_bw(nstime_t *start_time, nstime_t *stop_time, guint32 bytes)
 {
     if (memcmp(start_time, stop_time, sizeof(nstime_t)) != 0) {
-        float elapsed_ms = ((stop_time->secs - start_time->secs) * 1000) +
-                           ((stop_time->nsecs - start_time->nsecs) / 1000000);
+        float elapsed_ms = (((float)stop_time->secs - (float)start_time->secs) * 1000) +
+                           (((float)stop_time->nsecs - (float)start_time->nsecs) / 1000000);
         return ((bytes * 8) / elapsed_ms) / 1000;
     }
     else {