fix comparison between int and bitfield

fixes #33