*Core: Date::operator--() fix

git-svn-id: svn://ultimatepp.org/upp/trunk@4397 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2012-01-11 14:52:17 +00:00
parent f0a58650ad
commit 1ad8207a7d

View file

@ -19,7 +19,7 @@ struct Date : RelOps< Date, Moveable<Date> > {
int Compare(Date b) const;
Date& operator++() { if(day < 28) day++; else Set(Get() + 1); return *this; }
Date& operator--() { if(day > 0) day--; else Set(Get() - 1); return *this; }
Date& operator--() { if(day > 1) day--; else Set(Get() - 1); return *this; }
Date() { year = -32768; day = month = 0; }
Date(const Nuller&) { year = -32768; day = month = 0; }