git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10158
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#ifdef __WXMAC__
#if __MSL__ < 0x6000
#ifdef __WXMAC__
#if __MSL__ < 0x6000
- #define WX_TIME_BASE_OFFSET ( 2082844800L + 126144000L )
+ #define WX_TIME_BASE_OFFSET ( 2082844800L + 126144000L )
- #define WX_TIME_BASE_OFFSET 0
+ #define WX_TIME_BASE_OFFSET 0
- #define WX_TIME_BASE_OFFSET 0
+ #define WX_TIME_BASE_OFFSET 0
// but we already have a month - maybe we guessed wrong?
if ( !haveDay )
{
// but we already have a month - maybe we guessed wrong?
if ( !haveDay )
{
- // no need to check in month range as always < 12, but
+ // no need to check in month range as always < 12, but
// the days are counted from 1 unlike the months
day = (wxDateTime_t)mon + 1;
haveDay = TRUE;
// the days are counted from 1 unlike the months
day = (wxDateTime_t)mon + 1;
haveDay = TRUE;
// could possible be the year (doesn't the year come
// before the month in the japanese format?) (FIXME)
break;
// could possible be the year (doesn't the year come
// before the month in the japanese format?) (FIXME)
break;
mon = (wxDateTime::Month)(day - 1);
// we're in the current year then
mon = (wxDateTime::Month)(day - 1);
// we're in the current year then
- if ( year <= GetNumOfDaysInMonth(Inv_Year, mon) )
+ if ( (year > 0) &&
+ (unsigned)year <= GetNumOfDaysInMonth(Inv_Year, mon) )