Fixed raw bitmask setter
Merge pull request #56 from mattsjohnston/patch-1

Fixing issue #40