Oops - should be using bitwise AND

Sorry @ggreer - missed this in my original pull request