Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263840AbTIIAzI (ORCPT ); Mon, 8 Sep 2003 20:55:08 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263846AbTIIAzI (ORCPT ); Mon, 8 Sep 2003 20:55:08 -0400 Received: from pc1-cwma1-5-cust4.swan.cable.ntl.com ([80.5.120.4]:64387 "EHLO dhcp23.swansea.linux.org.uk") by vger.kernel.org with ESMTP id S263840AbTIIAzE (ORCPT ); Mon, 8 Sep 2003 20:55:04 -0400 Subject: Re: [2.4.23-pre3] Possible bug in fs/buffer.c From: Alan Cox To: Andreas Schwab Cc: Rolf Eike Beer , Linux Kernel Mailing List In-Reply-To: References: <200309081715.09657@bilbo.math.uni-mannheim.de> <1063036721.21084.55.camel@dhcp23.swansea.linux.org.uk> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1063068835.28622.48.camel@dhcp23.swansea.linux.org.uk> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4 (1.4.4-5) Date: Tue, 09 Sep 2003 01:53:56 +0100 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 558 Lines: 14 On Llu, 2003-09-08 at 17:04, Andreas Schwab wrote: > > Its not 100% reliable either 8). > > Could you please elaborate? Casting -1 to an unsigned type is guaranteed > to yield the maximum value for that type, at least since C89, but I think > even K&R C did get it right. My error - its ~0 that is unreliable. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/