This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcj/52344] New: [4.x regression] _Jv_platform_nanotime of win32.cc is wrong
- From: "jojelino at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 22 Feb 2012 21:02:59 +0000
- Subject: [Bug libgcj/52344] New: [4.x regression] _Jv_platform_nanotime of win32.cc is wrong
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52344
Bug #: 52344
Summary: [4.x regression] _Jv_platform_nanotime of win32.cc is
wrong
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libgcj
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: jojelino@gmail.com
just one liner.
diff --git a/libjava/win32.cc b/libjava/win32.cc
index 6a1c2c7..4a0503d 100644
--- a/libjava/win32.cc
+++ b/libjava/win32.cc
@@ -285,7 +285,7 @@ _Jv_platform_gettimeofday ()
jlong
_Jv_platform_nanotime ()
{
- return _Jv_platform_gettimeofday () * 1000LL;
+ return _Jv_platform_gettimeofday () * 1000000LL;
}
static bool dirExists (LPCTSTR dir)
posix.cc has correct implementation which multiples 1000000.