Fix "main.cpp:332: warning: comparison between signed and unsigned integer expressions".