Pull Request 231 fix

Changed the way the bitwise operators were called. Tests passed but it wasn't ok.