asyncqueue: fix timeout math on 32bit systems
authorRyan Lortie <desrt@desrt.ca>
Sun, 23 Feb 2014 06:11:50 +0000 (01:11 -0500)
committerRyan Lortie <desrt@desrt.ca>
Sun, 23 Feb 2014 06:14:27 +0000 (01:14 -0500)
commit356fe2cec65ad5b531ff08c78e5c24f37017bb83
tree81529a9057c04f6bb89f2abe73d2ba6c2e84bc3d
parent4af9b8e9cb43cbcb1f889b74b85111325aab57ba
asyncqueue: fix timeout math on 32bit systems

88182d375e13ae6519a288d5295220c83ca27e73 caught this issue in
g_async_queue_timed_pop() but failed to fix the same bug in the _unlocked()
variant.

This is only a problem on 32bit systems.  On 64bit systems, the tv_sec
in a timeval is already 64 bits, so no overflow occurs.

https://bugzilla.gnome.org/show_bug.cgi?id=722604
glib/gasyncqueue.c