Fix #538. Overflow check for unsigned values is removed.
Blended solution, catch overflow for signed int and
handle unsigned int.
Merge pull request #539 from NCrashed/master

Fix #538. Overflow check for unsigned values is removed.