Fix bug in ipToInt. Closes #12.
Merge pull request #59 from jarib/ip-to-int-bug

Fix bug in ipToInt. Closes #12.