From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xi Wang Subject: Re: [RFC][PATCH] fix casting constant to _Bool Date: Sun, 17 Jun 2012 14:44:09 -0400 Message-ID: References: <1339829720-2069-1-git-send-email-xi.wang@gmail.com> <20120616165941.GG4400@mwanda> Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ob0-f174.google.com ([209.85.214.174]:47225 "EHLO mail-ob0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757473Ab2FQSoV (ORCPT ); Sun, 17 Jun 2012 14:44:21 -0400 Received: by obbtb18 with SMTP id tb18so7300103obb.19 for ; Sun, 17 Jun 2012 11:44:20 -0700 (PDT) In-Reply-To: Sender: linux-sparse-owner@vger.kernel.org List-Id: linux-sparse@vger.kernel.org To: Linus Torvalds Cc: Dan Carpenter , linux-sparse@vger.kernel.org, Christopher Li , Pekka Enberg On Jun 16, 2012, at 1:20 PM, Linus Torvalds wrote: > Maybe something like "Odd constant _Bool cast (%lld -> 1)"? It will > always result in 1, since the only value that results in 0 is 0 (and > isn't odd). Sounds good. I will send a v2. - xi