Skip to content

Commit

Permalink
Fix possible overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 2, 2016
1 parent 7af3366 commit 29170d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsinterval.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}

Expand Down

0 comments on commit 29170d9

Please sign in to comment.