fix unsigned integer overflow 0 - 1
Merge pull request #49 from Maxime2/parser

fix unsigned integer overflows 0 - 1