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
This commit is contained in:
parent
be4bb86efd
commit
5a572f6c0a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user