Fixed #264. Using a logical AND will produce the same result as a bitwise
AND. The only different is the logical AND can take advantage of short
circuiting.