diff options
Diffstat (limited to 'libjava/posix.cc')
-rw-r--r-- | libjava/posix.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libjava/posix.cc b/libjava/posix.cc index f4b76962e35..6b0ea8cad3c 100644 --- a/libjava/posix.cc +++ b/libjava/posix.cc @@ -30,13 +30,13 @@ _Jv_platform_gettimeofday () #if defined (HAVE_GETTIMEOFDAY) timeval tv; gettimeofday (&tv, NULL); - return tv.tv_sec * 1000 + tv.tv_usec / 1000; + return (tv.tv_sec * 1000LL) + (tv.tv_usec / 1000LL); #elif defined (HAVE_TIME) - return time (NULL) * 1000; + return time (NULL) * 1000LL; #elif defined (HAVE_FTIME) struct timeb t; ftime (&t); - return t.time * 1000 + t.millitm; + return (t.time * 1000LL) + t.millitm; #elif defined (ECOS) // FIXME. return _clock(); |