what values of p[1] do you expect the test to be of use?

On 28 February 2012 15:40, erik quanstrom <quans...@quanstro.net> wrote:
> for p = uchar*, Nbus==256,
>
>                if((uint)p[1] >= Nbus){
>
> generates
>
>        warning: ./mp.c:212 useless or misleading comparison: UCHAR >= 0x100
>
> i'm pretty sure that 6c is incorrectly issuing the diagnostic before
> applying the cast.  (the cast is there to shut the compiler up.)
>
> - erik
>

-- 
Don't meddle in the mouth -- MVS (0416935147, +1-513-3BRUCEE)

Reply via email to