From fed3a2bc10998b71c0d1d50e6a6701a95434d023 Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Thu, 2 May 2013 22:03:53 -0400 Subject: [PATCH] Fix sign comparison of enum. --- MasterPassword/ObjC/MPAppDelegate_Store.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MasterPassword/ObjC/MPAppDelegate_Store.m b/MasterPassword/ObjC/MPAppDelegate_Store.m index 1ceffd40..d76f9809 100644 --- a/MasterPassword/ObjC/MPAppDelegate_Store.m +++ b/MasterPassword/ObjC/MPAppDelegate_Store.m @@ -140,7 +140,7 @@ PearlAssociatedObjectProperty(NSManagedObjectContext*, MainManagedObjectContext, - (void)migrateLocalStoreForManager:(UbiquityStoreManager *)manager { - MPMigrationLevelLocalStore migrationLevel = [[NSUserDefaults standardUserDefaults] integerForKey:@"MPMigrationLevelLocalStore"]; + MPMigrationLevelLocalStore migrationLevel = (unsigned)[[NSUserDefaults standardUserDefaults] integerForKey:@"MPMigrationLevelLocalStore"]; if (migrationLevel >= MPMigrationLevelLocalStoreCurrent) // Local store up-to-date. return; @@ -199,7 +199,7 @@ PearlAssociatedObjectProperty(NSManagedObjectContext*, MainManagedObjectContext, - (void)migrateCloudStoreForManager:(UbiquityStoreManager *)manager { - MPMigrationLevelCloudStore migrationLevel = [[NSUserDefaults standardUserDefaults] integerForKey:@"MPMigrationLevelCloudStore"]; + MPMigrationLevelCloudStore migrationLevel = (unsigned)[[NSUserDefaults standardUserDefaults] integerForKey:@"MPMigrationLevelCloudStore"]; if (migrationLevel >= MPMigrationLevelCloudStoreCurrent) // Cloud store up-to-date. return;