Fixed pull request 231 bitmask operators
Merge pull request #233 from adrian-budau/pull231fix

Fixing pull request number 231