Skip to content
Commit 4d6fcddc authored by Eric Engestrom's avatar Eric Engestrom Committed by Dylan Baker
Browse files

util/u_atomic: fix return type of p_atomic_{inc,dec}_return() and p_atomic_{cmp,}xchg()



We're trying to cast the return type to the type of the var, but instead
we were casting `sizeof(*v)`.

Fixes: 6df72e97 ("util: Make u_atomic.h typeless.")
Fixes: 0a7f17cf ("util/u_atomic: add p_atomic_xchg")
Signed-off-by: default avatarEric Engestrom <eric.engestrom@intel.com>
Reviewed-by: default avatarPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
(cherry picked from commit aaab7003)
parent 5694c201
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