]> git.saurik.com Git - wxWidgets.git/commitdiff
seconds and milliseconds in wxTimeSpan ctor should be long long, not long
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 2 Apr 2006 00:52:57 +0000 (00:52 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 2 Apr 2006 00:52:57 +0000 (00:52 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38507 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/datetime.h

index 18f0829a09af440ee8e31c58aa8f067b42b5f30e..b0edbf9efe5042c9b1d0d83bcf03026b8d31b3c8 100644 (file)
@@ -1115,7 +1115,7 @@ public:
     // ------------------------------------------------------------------------
 
         // return the timespan for the given number of seconds
-    static wxTimeSpan Seconds(long sec) { return wxTimeSpan(0, 0, sec); }
+    static wxTimeSpan Seconds(wxLongLong sec) { return wxTimeSpan(0, 0, sec); }
     static wxTimeSpan Second() { return Seconds(1); }
 
         // return the timespan for the given number of minutes
@@ -1142,8 +1142,8 @@ public:
         // milliseconds)
     inline wxTimeSpan(long hours,
                       long minutes = 0,
-                      long seconds = 0,
-                      long milliseconds = 0);
+                      wxLongLong seconds = 0,
+                      wxLongLong milliseconds = 0);
 
         // default copy ctor is ok
 
@@ -1893,8 +1893,8 @@ wxDateTime::FromTimezone(const wxDateTime::TimeZone& tz, bool noDST) const
 
 inline wxTimeSpan::wxTimeSpan(long hours,
                               long minutes,
-                              long seconds,
-                              long milliseconds)
+                              wxLongLong seconds,
+                              wxLongLong milliseconds)
 {
     // assign first to avoid precision loss
     m_diff = hours;