suppress warning using cast

This commit is contained in:
Richard Frith-Macdonald 2018-02-04 11:17:33 +00:00
parent ab670fd27a
commit b135bc8ae0
2 changed files with 3 additions and 2 deletions

View file

@ -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>

View file

@ -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);
}
}