From: "J.A. Magallon" <jamagallon@able.es>
To: Andreas Schwab <schwab@suse.de>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>,
Rolf Eike Beer <eike-kernel@sf-tec.de>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [2.4.23-pre3] Possible bug in fs/buffer.c
Date: Tue, 9 Sep 2003 00:13:59 +0200 [thread overview]
Message-ID: <20030908221359.GA2376@werewolf.able.es> (raw)
In-Reply-To: <jellsztgf6.fsf@sykes.suse.de>; from schwab@suse.de on Mon, Sep 08, 2003 at 18:04:45 +0200
On 09.08, Andreas Schwab wrote:
> Alan Cox <alan@lxorguk.ukuu.org.uk> writes:
>
> > On Llu, 2003-09-08 at 16:42, Andreas Schwab wrote:
> >> It's neither ugly, nor bogus. The only 100% reliable way to assign the
> >> maximum value to an unsigned integer is to use -1.
> >
> > 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.
>
Would not be much cleaner to do use ~0UL ?
--
J.A. Magallon <jamagallon@able.es> \ Software is like sex:
werewolf.able.es \ It's better when it's free
Mandrake Linux release 9.2 (Cooker) for i586
Linux 2.4.23-pre2-jam1m (gcc 3.3.1 (Mandrake Linux 9.2 3.3.1-1mdk))
next prev parent reply other threads:[~2003-09-08 22:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-08 15:15 Rolf Eike Beer
2003-09-08 15:42 ` Andreas Schwab
2003-09-08 15:58 ` Alan Cox
2003-09-08 16:04 ` Andreas Schwab
2003-09-08 22:13 ` J.A. Magallon [this message]
2003-09-09 0:53 ` Alan Cox
2003-09-09 13:39 ` Rolf Eike Beer
2003-09-08 16:12 ` Rolf Eike Beer
2003-09-09 0:52 ` Alan Cox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030908221359.GA2376@werewolf.able.es \
--to=jamagallon@able.es \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=eike-kernel@sf-tec.de \
--cc=linux-kernel@vger.kernel.org \
--cc=schwab@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome