mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Fix some (MSVC) compiler warnings
This commit is contained in:
committed by
Lars Müller
parent
695d526764
commit
e1143783e5
@@ -25,7 +25,7 @@ constexpr f64 ROUNDING_ERROR_f64 = 0.00000001;
|
||||
#undef PI
|
||||
#endif
|
||||
//! Constant for PI.
|
||||
constexpr f32 PI = M_PI;
|
||||
constexpr f32 PI = static_cast<f32>(M_PI);
|
||||
|
||||
#ifdef PI64 // make sure we don't collide with a define
|
||||
#undef PI64
|
||||
|
Reference in New Issue
Block a user