mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
Common/Timer: Fix integer underflow in Timer::GetDoubleTime for dates before ~2008.
This commit is contained in:
parent
ed32a2a1fe
commit
eab07866a3
2 changed files with 11 additions and 31 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue