mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Fix some (MSVC) compiler warnings
This commit is contained in:
parent
695d526764
commit
e1143783e5
8 changed files with 13 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue