mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 22:46:15 +01:00
Bug 642052 - g_timeout_add(_seconds) overflow
Fix integer overflow error.
This commit is contained in:
parent
10154d21f0
commit
c2fbef4125
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user