diff options
Diffstat (limited to 'qtools/qdatetime.cpp')
-rw-r--r-- | qtools/qdatetime.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qtools/qdatetime.cpp b/qtools/qdatetime.cpp index cecb855..4edaca9 100644 --- a/qtools/qdatetime.cpp +++ b/qtools/qdatetime.cpp @@ -491,7 +491,7 @@ bool QDate::isValid( int y, int m, int d ) bool QDate::leapYear( int y ) { - return y % 4 == 0 && y % 100 != 0 || y % 400 == 0; + return (y % 4 == 0 && y % 100 != 0) || (y % 400 == 0); } /*! |