Fixed -Wno-sign-compare warning option.

As suggested by @DavidRagazzi.