Structure property bug?
Steven Schveighoffer
schveiguy at yahoo.com
Thu Oct 4 07:19:44 PDT 2007
"Steven Schveighoffer" wrote
> if(ArincData[i].Data &0xff == 203)
I just realized also that assuming D has the same operator precedence as
C/C++, this really evalulates as:
if(ArincData[i].Data & (0xff == 203))
Which will obviously be compiled out.
So what you really want is:
if((ArincData[i].Data & 0xff) == 203)
BTW, I looked through the entire spec, and cannot find operator precedence
anywhere. Anyone know where it is?
-Steve
More information about the Digitalmars-d
mailing list