]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/date.h
Cleaned up the API for class/structure/function names to follow the wxWindows convent...
[wxWidgets.git] / include / wx / date.h
index 1b3f2e778894d4a8adab62d17f5a9baaee501dab..11ff72017f7e8e60ccc6261958bf39c96aa60eda 100644 (file)
@@ -81,8 +81,8 @@ public:
     long operator-(const wxDate &dt) const
         { return GetJulianDate() - dt.GetJulianDate(); }
 
-    wxDate &operator+=(long i) { m_date += wxTimeSpan::Days(i); return *this; }
-    wxDate &operator-=(long i) { m_date -= wxTimeSpan::Days(i); return *this; }
+    wxDate &operator+=(long i) { m_date += wxTimeSpan::Days((int)i); return *this; }
+    wxDate &operator-=(long i) { m_date -= wxTimeSpan::Days((int)i); return *this; }
 
     wxDate &operator++() { return *this += 1; }
     wxDate &operator++(int) { return *this += 1; }