diff for duplicates of <20100219112921.GC17130@bicker> diff --git a/a/1.txt b/N1/1.txt index 3b25648..fd1222d 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -48,16 +48,16 @@ code is always false). > Basically often when people write: - if (!foo == bar) { ... + if (!foo = bar) { ... What they mean is: - if (!(foo == bar)) { ... + if (!(foo = bar)) { ... But if they really do mean the original code they could just write this so it's clear to everyone: - if ((!foo) == bar) { ... + if ((!foo) = bar) { ... -To me it's like "==" vs "=". Of course, every programmer knows the +To me it's like "=" vs "=". Of course, every programmer knows the what the difference is but it helps to have gcc warn about adding the extra parenthesis. Maybe I suck, but it definitely has helped me in then past. diff --git a/a/content_digest b/N1/content_digest index 0c68472..2caa8d9 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -3,7 +3,7 @@ "ref\01266575610.31443.6.camel@thorin\0" "From\0Dan Carpenter <error27@gmail.com>\0" "Subject\0Re: [patch] oxygen: clean up. make precedence explicit\0" - "Date\0Fri, 19 Feb 2010 14:29:21 +0300\0" + "Date\0Fri, 19 Feb 2010 11:29:21 +0000\0" "To\0Bernd Petrovitsch <bernd@petrovitsch.priv.at>\0" "Cc\0Takashi Iwai <tiwai@suse.de>" kernel-janitors@vger.kernel.org @@ -61,16 +61,16 @@ "> \n" "\n" "Basically often when people write:\n" - "\tif (!foo == bar) { ...\n" + "\tif (!foo = bar) { ...\n" "\n" "What they mean is:\n" - "\tif (!(foo == bar)) { ...\n" + "\tif (!(foo = bar)) { ...\n" "\n" "But if they really do mean the original code they could just write \n" "this so it's clear to everyone: \n" - "\tif ((!foo) == bar) { ...\n" + "\tif ((!foo) = bar) { ...\n" "\n" - "To me it's like \"==\" vs \"=\". Of course, every programmer knows the \n" + "To me it's like \"=\" vs \"=\". Of course, every programmer knows the \n" "what the difference is but it helps to have gcc warn about adding the \n" "extra parenthesis. Maybe I suck, but it definitely has helped me in \n" "then past.\n" @@ -88,4 +88,4 @@ "> Bernd Petrovitsch Email : bernd@petrovitsch.priv.at\n" > LUGA : http://www.luga.at -20b27fec442dcb9bcabb6cefc935ac63e6e8d76980f610aa96ee82aaeb5a6eb5 +25e14debbb9c66e076d538dc2199dfe424fd8f4ea4923c42b197c57279916a13
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.