Skip to content
Commit cf13258f authored by David Howells's avatar David Howells
Browse files

rxrpc: Fix ASSERTCMP and ASSERTIFCMP to handle signed values



Fix ASSERTCMP and ASSERTIFCMP to be able to handle signed values by casting
both parameters to the type of the first before comparing.  Without this,
both values are cast to unsigned long, which means that checks for values
less than zero don't work.

The downside of this is that the state enum values in struct rxrpc_call and
struct rxrpc_connection can't be bitfields as __typeof__ can't handle them.

Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
parent 0f76d256
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment