Skip to content
Permalink
Browse files

Fix possible overflow

  • Loading branch information
nyalldawson committed Jun 2, 2016
1 parent 7af3366 commit 29170d918b7e03aecd547fcb3fe689993150c03c
Showing with 1 addition and 1 deletion.
  1. +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 );
}

0 comments on commit 29170d9

Please sign in to comment.
You can’t perform that action at this time.