more bracket evilness

Andreas Mohr andi at rhlx01.fht-esslingen.de
Fri Feb 1 12:09:15 CST 2002


On Fri, Feb 01, 2002 at 07:04:33PM +0100, Uwe Bonnes wrote:
> >>>>> "Andreas" == Andreas Mohr <andi at rhlx01.fht-esslingen.de> writes:
> 
>     Andreas> Hmm, isn't the boolean end result the same with or without fix
>     Andreas> ?  I thought it is, but maybe I'm mistaken ??
> 
> -	    if (!dwFlags & 4)
> +	    if (!(dwFlags & 4))
> 
> The first line tells:
>  if ((dwFlagss == 0 & 4)
> the second
>  if bit 2 of dwFlags is not set
Doh !

Thanks, I must have been completely and utterly blind ;-)

-- 
Andreas Mohr                        Stauferstr. 6, D-71272 Renningen, Germany
Tel. +49 7159 800604                http://home.nexgo.de/andi.mohr/




More information about the wine-devel mailing list