This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgcj/52344] New: [4.x regression] _Jv_platform_nanotime of win32.cc is wrong


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]