Fix bitwise operation
Merge pull request #27 from naoliv/pull19

Fix bitwise operation