mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
suppress warning using cast
This commit is contained in:
parent
ab670fd27a
commit
b135bc8ae0
2 changed files with 3 additions and 2 deletions
|
@ -1203,13 +1203,13 @@ updateTimer(NSTimer *t, NSDate *d, NSTimeInterval now)
|
|||
else
|
||||
{
|
||||
/* Wait until the LIMIT_DATE. */
|
||||
if (ti >= INT_MAX / 1000)
|
||||
if (ti >= INT_MAX / 1000.0)
|
||||
{
|
||||
timeout_ms = INT_MAX; // Far future.
|
||||
}
|
||||
else
|
||||
{
|
||||
timeout_ms = (ti * 1000.0);
|
||||
timeout_ms = (int)(ti * 1000.0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue