Fixing compiler warning about sign conversion.