diff options
author | Nick Roberts <nickrob@snap.net.nz> | 2007-02-02 23:29:52 +0000 |
---|---|---|
committer | Nick Roberts <nickrob@snap.net.nz> | 2007-02-02 23:29:52 +0000 |
commit | f239559399b0ab00df20aba1e2367ca94b3edc7f (patch) | |
tree | af0792ec5d87c5b72c3e5a4f9474b3e89203f516 | |
parent | 9c8747735cc9c82fcbf0eb109135ca603df2bfea (diff) | |
download | binutils-f239559399b0ab00df20aba1e2367ca94b3edc7f.zip binutils-f239559399b0ab00df20aba1e2367ca94b3edc7f.tar.gz binutils-f239559399b0ab00df20aba1e2367ca94b3edc7f.tar.bz2 |
(mi_load_progress, timestamp, print_diff_now):
Use 1000000L instead of 1000000.
-rw-r--r-- | gdb/mi/mi-main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index ee36283..a373d3b 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -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); } |