Bug 642052 - g_timeout_add(_seconds) overflow

Fix integer overflow error.
This commit is contained in:
Ryan Lortie 2011-02-14 23:21:14 -05:00
parent 10154d21f0
commit c2fbef4125

View File

@ -3796,7 +3796,8 @@ static void
g_timeout_set_expiration (GTimeoutSource *timeout_source,
gint64 current_time)
{
timeout_source->expiration = current_time + timeout_source->interval * 1000;
timeout_source->expiration = current_time +
(guint64) timeout_source->interval * 1000;
if (timeout_source->seconds)
{