mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Fix C5055 warnings on C++20 and up (#2637)
* Fix C5055 (operator 'operator-name': deprecated between enumerations and floating-point types) warnings on C++20 and up * Changed static_casts to functional-style casts Co-authored-by: Raziel Alphadios <raziely@gmail.com>
This commit is contained in:
@@ -267,7 +267,7 @@ namespace
|
||||
private:
|
||||
void CalculateSunOrbit()
|
||||
{
|
||||
float day = 30.0f * m_month + 15.0f;
|
||||
const float day = 30.0f * float(m_month) + 15.0f;
|
||||
float lambda = 280.46f + 0.9856474f * day;
|
||||
lambda = bx::toRad(lambda);
|
||||
m_delta = bx::asin(bx::sin(m_eclipticObliquity) * bx::sin(lambda) );
|
||||
|
||||
Reference in New Issue
Block a user