ip_to_mask fix:

convert m \in [0,32] to int32 X where the m MSB are set to 1
Merge pull request #173 from fugitifduck/0x04_ip_to_mask

ip_to_mask fix: