From: Nick Roberts Date: Fri, 2 Feb 2007 23:29:52 +0000 (+0000) Subject: (mi_load_progress, timestamp, print_diff_now): X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f239559399b0ab00df20aba1e2367ca94b3edc7f;p=binutils-gdb.git (mi_load_progress, timestamp, print_diff_now): Use 1000000L instead of 1000000. --- diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index ee362834dc6..a373d3b93a0 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); }