fix compiler warnings

fix compiler warnings: "suggest parentheses around arithmetic in operand of '|' [-Wparentheses]"
Merge pull request #1 from niXman/master

fix compiler warnings