This commit is contained in:
Glenn Maynard
2005-12-30 06:12:31 +00:00
parent 65336b7e5c
commit b6cda2fc47
+1 -1
View File
@@ -18,7 +18,7 @@ void DateTime::Init()
bool DateTime::operator<( const DateTime& other ) const
{
#define COMPARE( v ) if(v<other.v) return true; if(v>other.v) return false;
#define COMPARE( v ) if(v!=other.v) return v<other.v;
COMPARE( tm_year );
COMPARE( tm_mon );
COMPARE( tm_mday );