mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
suppress warning using cast
This commit is contained in:
parent
ab670fd27a
commit
b135bc8ae0
2 changed files with 3 additions and 2 deletions
|
@ -6,6 +6,7 @@
|
|||
* Source/NSLocale.m: localeIdentifierFromComponents should cope with
|
||||
collation alone beng set.
|
||||
* Source/GSString.m: better handling if character conversion fails.
|
||||
* Source/NSRunLoop.m: suppress warning using cast.
|
||||
|
||||
2018-01-26 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
|
|
|
@ -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…
Reference in a new issue