Fix sign comparison of enum.
This commit is contained in:
parent
7329353c6c
commit
407c5528ee
@ -140,7 +140,7 @@ PearlAssociatedObjectProperty(NSManagedObjectContext*, MainManagedObjectContext,
|
|||||||
|
|
||||||
- (void)migrateLocalStoreForManager:(UbiquityStoreManager *)manager {
|
- (void)migrateLocalStoreForManager:(UbiquityStoreManager *)manager {
|
||||||
|
|
||||||
MPMigrationLevelLocalStore migrationLevel = [[NSUserDefaults standardUserDefaults] integerForKey:@"MPMigrationLevelLocalStore"];
|
MPMigrationLevelLocalStore migrationLevel = (unsigned)[[NSUserDefaults standardUserDefaults] integerForKey:@"MPMigrationLevelLocalStore"];
|
||||||
if (migrationLevel >= MPMigrationLevelLocalStoreCurrent)
|
if (migrationLevel >= MPMigrationLevelLocalStoreCurrent)
|
||||||
// Local store up-to-date.
|
// Local store up-to-date.
|
||||||
return;
|
return;
|
||||||
@ -199,7 +199,7 @@ PearlAssociatedObjectProperty(NSManagedObjectContext*, MainManagedObjectContext,
|
|||||||
|
|
||||||
- (void)migrateCloudStoreForManager:(UbiquityStoreManager *)manager {
|
- (void)migrateCloudStoreForManager:(UbiquityStoreManager *)manager {
|
||||||
|
|
||||||
MPMigrationLevelCloudStore migrationLevel = [[NSUserDefaults standardUserDefaults] integerForKey:@"MPMigrationLevelCloudStore"];
|
MPMigrationLevelCloudStore migrationLevel = (unsigned)[[NSUserDefaults standardUserDefaults] integerForKey:@"MPMigrationLevelCloudStore"];
|
||||||
if (migrationLevel >= MPMigrationLevelCloudStoreCurrent)
|
if (migrationLevel >= MPMigrationLevelCloudStoreCurrent)
|
||||||
// Cloud store up-to-date.
|
// Cloud store up-to-date.
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user