[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0611031808280.15472@artax.karlin.mff.cuni.cz>
Date: Fri, 3 Nov 2006 18:09:39 +0100 (CET)
From: Mikulas Patocka <mikulas@...ax.karlin.mff.cuni.cz>
To: Oleg Verych <olecom@...wer.upol.cz>
Cc: Andrew Morton <akpm@...l.org>,
Gabriel C <nix.or.die@...glemail.com>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: New filesystem for Linux
> In gmane.linux.kernel, you wrote:
> []
>> From: Andrew Morton <akpm@...l.org>
>>
>> As Mikulas points out, (1 << anything) won't be evaluating to zero.
>
> How about integer overflow ?
C standard defines that shifts by more bits than size of a type are
undefined (in fact 1<<32 produces 1 on i386, because processor uses only 5
bits of a count).
Mikulas
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists