Update main.cpp

Fixed a minor annoyance in main.
Merge pull request #1 from slax0r/master

fixed a error about signed/unsigned int