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

Fix problem with milliseconds overflowing for long uptime on OSX

This commit is contained in:
cesare 2019-02-18 18:43:25 +00:00
parent 218ddf1193
commit 99afd933e0

View file

@ -383,7 +383,7 @@ bool MessageManager::runDispatchLoopUntil (int millisecondsToRunFor)
jassert (millisecondsToRunFor >= 0);
jassert (isThisTheMessageThread()); // must only be called by the message thread
auto endTime = Time::currentTimeMillis() + millisecondsToRunFor;
auto endTime = (int64) Time::currentTimeMillis() + millisecondsToRunFor;
while (quitMessagePosted.get() == 0)
{