Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix possible overflow
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+1
−1
src/core/qgsinterval.cpp
|
@@ -132,7 +132,7 @@ QDateTime operator+( const QDateTime& start, const QgsInterval& interval ) |
|
|
|
|
|
QgsInterval operator-( const QDate& date1, const QDate& date2 ) |
|
|
{ |
|
|
qint64 seconds = date2.daysTo( date1 ) * 24 * 60 * 60; |
|
|
qint64 seconds = static_cast< qint64 >( date2.daysTo( date1 ) ) * 24 * 60 * 60; |
|
|
return QgsInterval( seconds ); |
|
|
} |
|
|
|
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.