Fix signed/unsigned conversion warnings.