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:
@@ -660,7 +660,7 @@ void wxDateTime::Tm::ComputeWeekDay()
|
|||||||
// compute the week day from day/month/year: we use the dumbest algorithm
|
// 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)
|
// possible: just compute our JDN and then use the (simple to derive)
|
||||||
// formula: weekday = (JDN + 1.5) % 7
|
// 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)
|
void wxDateTime::Tm::AddMonths(int monDiff)
|
||||||
|
Reference in New Issue
Block a user