Changed to uint for safety
Merge pull request #624 from bvssvni/master

Changed to uint for safety