Oops - should be using bitwise AND
Merge pull request #304 from mcphail/issue_302

Oops - should be using bitwise AND