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:
parent
0f307122d9
commit
82f1fd57a4
23 changed files with 88 additions and 101 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue