Re: [OT] Re: 0xdeadbeef vs 0xdeadbeefL

From: viro
Date: Thu Jul 08 2004 - 06:18:42 EST


On Thu, Jul 08, 2004 at 11:32:50AM +0200, Gabriel Paubert wrote:

> Yes, I know and I use BK. But given the fact that you insult me for
> better knowing C rules than you, I'm seriously considering switch
> to subversion or arch instead.
>
> Argh, I've mentioned BK. There should be a Goldwin's law equivalent
> for BitKeeper on lkml ;-)

Godwin, surely?

Anyway, if you think that suckversion authors knew C... Try to read their
decoder/parser/whatever you call the code handling the data stream obtained
from other end of connection. _Especially_ when it comes to signedness
(of integers, mostly).

> - the aforementioned fgetc/getc/getchar issues.

... have nothing to do with char; getc() has more legitimate return values
than char can represent. No matter whether it's signed or unsigned, if
you have
... char c;
...
c = getc();
you have a bug - Dirichlet Principle bites you anyway.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/