public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/52344] New: [4.x regression] _Jv_platform_nanotime of win32.cc is wrong
@ 2012-02-22 21:03 jojelino at gmail dot com
  0 siblings, 0 replies; only message in thread
From: jojelino at gmail dot com @ 2012-02-22 21:03 UTC (permalink / raw)
  To: java-prs

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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-02-22 21:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-22 21:03 [Bug libgcj/52344] New: [4.x regression] _Jv_platform_nanotime of win32.cc is wrong jojelino at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).