mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-25 22:03:45 -06:00
*Core: Date::operator--() fix
git-svn-id: svn://ultimatepp.org/upp/trunk@4397 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
f0a58650ad
commit
1ad8207a7d
1 changed files with 1 additions and 1 deletions
|
|
@ -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; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue