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:52 +0000 (17:15 -0400)
commit46c252b068edf9ce20ebca3a4830ccefe377019e
treee1c52300d88c976c167e0f49926d863faa831e5b
parent4ced09527503629a4387e1adbe21c82b133c54ed
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.025621 seconds and 4 git commands to generate.