(mi_load_progress, timestamp, print_diff_now):
authorNick Roberts <nickrob@snap.net.nz>
Fri, 2 Feb 2007 23:29:52 +0000 (23:29 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Fri, 2 Feb 2007 23:29:52 +0000 (23:29 +0000)
Use 1000000L instead of 1000000.

gdb/mi/mi-main.c

index ee362834dc601da56465680fdf970c11ad0dba8f..a373d3b93a06b2b7fc422da083a8ba96367c2fef 100644 (file)
@@ -1461,7 +1461,7 @@ mi_load_progress (const char *section_name,
   if (delta.tv_usec < 0)
     {
       delta.tv_sec -= 1;
-      delta.tv_usec += 1000000;
+      delta.tv_usec += 1000000L;
     }
 
   new_section = (previous_sect_name ?
@@ -1537,8 +1537,8 @@ timestamp (struct mi_timestamp *tv)
     tv->stime.tv_usec = rusage.ru_stime.tv_usec;
 #else
     usec = get_run_time ();
-    tv->utime.tv_sec = usec/1000000;
-    tv->utime.tv_usec = usec - 1000000*tv->utime.tv_sec;
+    tv->utime.tv_sec = usec/1000000L;
+    tv->utime.tv_usec = usec - 1000000L*tv->utime.tv_sec;
     tv->stime.tv_sec = 0;
     tv->stime.tv_usec = 0;
 #endif
@@ -1555,7 +1555,7 @@ print_diff_now (struct mi_timestamp *start)
 static long 
 timeval_diff (struct timeval start, struct timeval end)
   {
-    return ((end.tv_sec - start.tv_sec) * 1000000)
+    return ((end.tv_sec - start.tv_sec) * 1000000L)
       + (end.tv_usec - start.tv_usec);
   }