1
0
Fork 0
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:
Lars Mueller 2025-04-04 17:09:12 +02:00 committed by Lars Müller
parent 695d526764
commit e1143783e5
8 changed files with 13 additions and 15 deletions

View file

@ -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