From 5a572f6c0a8528f4d0ec2b47fd29307e440417f4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 12 Feb 2007 13:04:24 +0000 Subject: [PATCH] removed spurious cast of GetTruncatedJDN() return value to WeekDay enum which breaks the code with Watcom (and maybe others) (bug 1618853) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44472 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/datetime.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/datetime.cpp b/src/common/datetime.cpp index c40dedee2b..7c4dc7d5af 100644 --- a/src/common/datetime.cpp +++ b/src/common/datetime.cpp @@ -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)