]> git.saurik.com Git - wxWidgets.git/commitdiff
removed spurious cast of GetTruncatedJDN() return value to WeekDay enum which breaks...
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 12 Feb 2007 13:04:24 +0000 (13:04 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 12 Feb 2007 13:04:24 +0000 (13:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44472 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/datetime.cpp

index c40dedee2b2842d14dac35edec5add9f1af31f26..7c4dc7d5afda2bd75603e37808b7a0ca2f869b2e 100644 (file)
@@ -660,7 +660,7 @@ void wxDateTime::Tm::ComputeWeekDay()
     // compute the week day from day/month/year: we use the dumbest algorithm
     // possible: just compute our JDN and then use the (simple to derive)
     // formula: weekday = (JDN + 1.5) % 7
-    wday = (wxDateTime::wxDateTime_t)((wxDateTime::WeekDay)(GetTruncatedJDN(mday, mon, year) + 2) % 7);
+    wday = (wxDateTime::wxDateTime_t)((GetTruncatedJDN(mday, mon, year) + 2) % 7);
 }
 
 void wxDateTime::Tm::AddMonths(int monDiff)