warning fixed

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10158 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-05-14 21:28:04 +00:00
parent 788722ac5c
commit f5cd97870d
2 changed files with 7 additions and 6 deletions

View File

@@ -3292,7 +3292,8 @@ const wxChar *wxDateTime::ParseDate(const wxChar *date)
mon = (wxDateTime::Month)(day - 1); mon = (wxDateTime::Month)(day - 1);
// we're in the current year then // we're in the current year then
if ( year <= GetNumOfDaysInMonth(Inv_Year, mon) ) if ( (year > 0) &&
(unsigned)year <= GetNumOfDaysInMonth(Inv_Year, mon) )
{ {
day = year; day = year;