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

UnitTestRunner: Fix some tests that could fail on 32 bit systems

This commit is contained in:
Tom Poole 2024-11-04 17:38:50 +00:00
parent ef28243c64
commit 9ed3144e08
2 changed files with 9 additions and 1 deletions

View file

@ -126,7 +126,12 @@ public:
}
{
Time currentTime (Time::currentTimeMillis());
double deltaInSeconds = 1.234;
// Make sure we use a double that has a representation that will always
// truncate to what we expect when multipled by 1000 and turned into
// integer milliseconds.
double deltaInSeconds = 1.562;
RelativeTime delta (deltaInSeconds);
Time laterTime = currentTime + delta;