Fixing compiler warning about signedness