Common/Timer: Fix integer underflow in Timer::GetDoubleTime for dates before ~2008.

This commit is contained in:
Jordan Woyak
2020-07-12 12:36:58 -05:00
parent ed32a2a1fe
commit eab07866a3
2 changed files with 11 additions and 31 deletions

View File

@ -41,7 +41,7 @@ public:
// Arbitrarily chosen value (38 years) that is subtracted in GetDoubleTime()
// to increase sub-second precision of the resulting double timestamp
static const int DOUBLE_TIME_OFFSET = (38 * 365 * 24 * 60 * 60);
static constexpr int DOUBLE_TIME_OFFSET = (38 * 365 * 24 * 60 * 60);
private:
u64 m_LastTime;