Skip to content
Commit 4385e6cf authored by Lionel Landwerlin's avatar Lionel Landwerlin Committed by Dylan Baker
Browse files

util/timespec: use unsigned 64 bit integers for nsec values



We added this utility for vulkan where all timeouts are given as
uint64_t values. We can switch from signed to unsigned as this is the
only user and if we ever deal with signed integers somewhere else
we'll have to be careful to use the corresponding
timespec_(add|sub)_msec and always pass absolute values.

v2: Forgot to drop the test calling add_nsec() with a negative number

Signed-off-by: default avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
Reported-by: default avatarJuan A. Suarez Romero <jasuarez@igalia.com>
Fixes: d2d70c3b ("util: add a timespec helper")
Acked-by: default avatarDaniel Stone <daniels@collabora.com>
(cherry picked from commit 5833f433)
parent 18511e3f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment