Skip to content
Permalink
Browse files

fix conversion warning

  • Loading branch information
3nids committed Sep 12, 2018
1 parent d7fb5f9 commit 827cfbc4df8ba4d2c4b7136abdeb2069d78985d1
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgis.h
@@ -289,7 +289,7 @@ inline bool qgsDoubleNearSig( double a, double b, int significantDigits = 10 )
*/
inline double qgsRound( double number, double places )
{
int scaleFactor = std::pow( 10, places );
int scaleFactor = static_cast<int>( std::pow( 10, places ) );
return static_cast<double>( static_cast<qlonglong>( number * scaleFactor + 0.5 ) ) / scaleFactor;
}

0 comments on commit 827cfbc

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