1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fix some compiler warnings

This commit is contained in:
Tom Poole 2023-08-18 15:14:51 +01:00
parent 0f307122d9
commit 82f1fd57a4
23 changed files with 88 additions and 101 deletions

View file

@ -311,7 +311,7 @@ public:
}
highResTimerFrequency = (timebase.denom * (uint64) 1000000000) / timebase.numer;
highResTimerToMillisecRatio = hiResCounterNumerator / (double) hiResCounterDenominator;
highResTimerToMillisecRatio = (double) hiResCounterNumerator / (double) hiResCounterDenominator;
}
uint32 millisecondsSinceStartup() const noexcept
@ -321,7 +321,7 @@ public:
double getMillisecondCounterHiRes() const noexcept
{
return mach_absolute_time() * highResTimerToMillisecRatio;
return (double) mach_absolute_time() * highResTimerToMillisecRatio;
}
int64 highResTimerFrequency;