2
0

Type warning fixes.

This commit is contained in:
Maarten Billemont 2014-08-23 23:33:10 -04:00
parent b579dac180
commit bddbd199e2

View File

@ -622,14 +622,14 @@ PearlAssociatedObjectProperty( NSManagedObjectContext*, MainManagedObjectContext
importAlgorithm = MPAlgorithmDefaultForBundleVersion( importBundleVersion ); importAlgorithm = MPAlgorithmDefaultForBundleVersion( importBundleVersion );
} }
if ([headerName isEqualToString:@"Format"]) { if ([headerName isEqualToString:@"Format"]) {
importFormat = [headerValue integerValue]; importFormat = (NSUInteger)[headerValue integerValue];
if (importFormat >= [sitePatterns count]) { if (importFormat >= [sitePatterns count]) {
err( @"Unsupported import format: %lu", (unsigned long)importFormat ); err( @"Unsupported import format: %lu", (unsigned long)importFormat );
return MPImportResultInternalError; return MPImportResultInternalError;
} }
} }
if ([headerName isEqualToString:@"Avatar"]) if ([headerName isEqualToString:@"Avatar"])
importAvatar = [headerValue integerValue]; importAvatar = (NSUInteger)[headerValue integerValue];
if ([headerName isEqualToString:@"Passwords"]) { if ([headerName isEqualToString:@"Passwords"]) {
if ([headerValue isEqualToString:@"VISIBLE"]) if ([headerValue isEqualToString:@"VISIBLE"])
clearText = YES; clearText = YES;