Fix integer parser.

Before this, the number 1234 was parsed as 64 = 10*1 + 10*2 + 10*3
+ 4.
Merge pull request #7 from timjb/fix-integer

Fix integer parser