Skip to contentSkip to conversation

reiser4 cryptcompress.c: X<Y<=Z comparison

DISCUSSION Adrian Bunk 1 participant 1 message Jan 30, 2005

lore
Share & tools
lore
#0 lore raw

gcc 4.0 gives the following warning:

<-- snip -->

...
CC fs/reiser4/plugin/cryptcompress.o
fs/reiser4/plugin/cryptcompress.c: In function 'grab_cluster_pages':
fs/reiser4/plugin/cryptcompress.c:1415: warning: comparisons like X<=Y<=Z do have their mathematical meaning
...

<-- snip -->

After a quick look, it seems gcc is correct and this assertion needs a correction.

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed