Go Down

Topic: Error in lang reference: compound bitwise OR  (|=) (Read 656 times) previous topic - next topic

newbee

Hello,

I think there's a mistake in the following text:

"Consequently - to set bits 0 & 1 of a variable, while leaving the
rest of the variable unchanged, use the compound bitwise AND
operator (&=) with the constant B00000011
1 0 1 0 1 0 1 0 variable
0 0 0 0 0 0 1 1 mask
----------------------
1 0 1 0 1 0 1 1        "

should read: "use the compound bitwise OR (|=) operator"

creates confusion...


mellis


Go Up