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:
parent
ef28243c64
commit
9ed3144e08
2 changed files with 9 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue