Fix integer conversion warnings.