16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 15:49:18 +02:00

reformat: set variables to constexpr where possible

This commit is contained in:
jerrrrycho
2026-07-04 06:16:13 +02:00
parent aeb800283c
commit 6fd1d6715b
64 changed files with 541 additions and 541 deletions

View File

@@ -175,7 +175,7 @@ scenario_time::julian_day() const {
// for dates in Julian calendar
int JD = K1 + K2 + m_time.wDay + 59;
// for dates in Gregorian calendar; 2299160 is October 15th, 1582
const int gregorianswitchday = 2299160;
constexpr int gregorianswitchday = 2299160;
if( JD > gregorianswitchday ) {
const int K3 = std::floor( std::floor( yy * 0.01 + 49 ) * 0.75 ) - 38;