From: Mathieu Desnoyers Date: Fri, 24 Oct 2014 21:13:39 +0000 (-0400) Subject: Fix: silence gcc -Wextra warning X-Git-Tag: v0.9.0~74 X-Git-Url: https://git.lttng.org/?p=urcu.git;a=commitdiff_plain;h=e4749953c309cb418cd583cdd80b6dd0b2c4161f;hp=e4749953c309cb418cd583cdd80b6dd0b2c4161f Fix: silence gcc -Wextra warning It appears that just casting to "unsigned long" already has the semantic we are looking for (checked by reading C99 standard and experimentation): it sign-extends smaller signed integers, and does not sign-extend unsigned integers. Signed-off-by: Mathieu Desnoyers ---