Fix: silence gcc -Wextra warning
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 24 Oct 2014 21:13:39 +0000 (17:13 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 24 Oct 2014 21:15:56 +0000 (17:15 -0400)
commit6488f70bcf96976bfda4d1836e0cab5ef6f599ff
tree8466be53cf83864158bf2976e2cbf16fd64c4553
parent1102e811a7922f3bd3c0429a608c8c727c8bb1cd
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 <mathieu.desnoyers@efficios.com>
urcu/compiler.h
This page took 0.02718 seconds and 4 git commands to generate.