X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5ebdc86afc95a60fbeb0b2a71c38dd26c8a1b0b4..eda22ec3a2d70fe178a194fe58804fceacb15f4c:/src/common/timercmn.cpp diff --git a/src/common/timercmn.cpp b/src/common/timercmn.cpp index 6409e809e7..64dbb0aac2 100644 --- a/src/common/timercmn.cpp +++ b/src/common/timercmn.cpp @@ -103,7 +103,7 @@ long wxStopWatch::GetElapsedTime() const // old timer functions superceded by wxStopWatch // ---------------------------------------------------------------------------- -static wxLongLong wxStartTime = 0; +static wxLongLong wxStartTime = 0l; // starts the global timer void wxStartTimer() @@ -211,7 +211,8 @@ wxLongLong wxGetLocalTimeMillis() // 00:00:00 Jan 1st 1970 and then whatever is available // to get millisecond resolution. // - wxLongLong val = 1000 * wxGetLocalTime(); + wxLongLong val = 1000l; + val *= wxGetLocalTime(); // If we got here, do not fail even if we can't get // millisecond resolution.