fix casting constant to _Bool
commitafa3245c069c532f3a88bf0053113c54480a1c1d
authorXi Wang <xi.wang@gmail.com>
Sun, 17 Jun 2012 18:45:05 +0000 (17 14:45 -0400)
committerChristopher Li <sparse@chrisli.org>
Thu, 28 Feb 2013 09:15:37 +0000 (28 01:15 -0800)
tree36f21a84b175f40d827ff3fa4ba2c209bf76ae97
parent30cb3a104d4fb8b70409e8f1e8a0a08363236f58
fix casting constant to _Bool

Casting to _Bool requires a zero test rather than truncation.  Also add
a new cast warning for _Bool since this is not about truncation.

Cc: Pekka Enberg <penberg@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Christopher Li <sparse@chrisli.org>
expand.c