From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=60862 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P675Q-0007KZ-Nr for qemu-devel@nongnu.org; Wed, 13 Oct 2010 15:34:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P675P-0003s3-NV for qemu-devel@nongnu.org; Wed, 13 Oct 2010 15:34:04 -0400 Received: from mail-qy0-f173.google.com ([209.85.216.173]:41590) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P675P-0003rz-Ka for qemu-devel@nongnu.org; Wed, 13 Oct 2010 15:34:03 -0400 Received: by qyk36 with SMTP id 36so759247qyk.4 for ; Wed, 13 Oct 2010 12:34:03 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <1286526743-10253-1-git-send-email-weil@mail.berlios.de> <4CAF9072.8080600@mail.berlios.de> <4CB60173.3010605@mail.berlios.de> From: Blue Swirl Date: Wed, 13 Oct 2010 19:33:40 +0000 Message-ID: Subject: Re: [Qemu-devel] Re: [PATCH] tcg: Fix compiler error (comparison of unsigned expression) Content-Type: text/plain; charset=UTF-8 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Hollis Blanchard Cc: QEMU Developers On Wed, Oct 13, 2010 at 7:22 PM, Hollis Blanchard wrote: > On Wed, Oct 13, 2010 at 11:58 AM, Stefan Weil wrote: >> >> Hollis, do you still see problems with my patch? >> Or can it be committed? > > I have no objection; I was just anticipating Blue's objection when I > commented previously. It's just a style question really... Both ((int)op >= 0 && op < NB_OPS) and ((unsigned int)op < NB_OPS) produce same binary (if NB_OPS < MAX_INT). During the earlier, long discussion, the int version was preferred.