Skip to content

Commit 827cfbc

Browse files
committedSep 12, 2018
fix conversion warning
1 parent d7fb5f9 commit 827cfbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/qgis.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ inline bool qgsDoubleNearSig( double a, double b, int significantDigits = 10 )
289289
*/
290290
inline double qgsRound( double number, double places )
291291
{
292-
int scaleFactor = std::pow( 10, places );
292+
int scaleFactor = static_cast<int>( std::pow( 10, places ) );
293293
return static_cast<double>( static_cast<qlonglong>( number * scaleFactor + 0.5 ) ) / scaleFactor;
294294
}
295295

0 commit comments

Comments
 (0)
Please sign in to comment.