mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-25 03:32:12 +01:00
Bug 642052 - g_timeout_add(_seconds) overflow
Fix integer overflow error.
This commit is contained in:
parent
7aa6620d20
commit
78c8f5cc69
@ -3796,7 +3796,8 @@ static void
|
|||||||
g_timeout_set_expiration (GTimeoutSource *timeout_source,
|
g_timeout_set_expiration (GTimeoutSource *timeout_source,
|
||||||
gint64 current_time)
|
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)
|
if (timeout_source->seconds)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user