Skip to content

Commit

Permalink
fix compiler warnings (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeny-pol authored and itoys committed Mar 1, 2019
1 parent b1c4a5a commit 54e70dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Expand Up @@ -12,7 +12,7 @@ @implementation SBLocalStorage

@synthesize isRefreshNeeded, deviceToken;

static const NSString* storageVersion = @"v1.0.0";
static NSString* const storageVersion = @"v1.0.0";

- (SBLocalStorage*) initWithNotificationHubPath: (NSString*) notificationHubPath
{
Expand Down Expand Up @@ -83,7 +83,7 @@ - (void) updateWithRegistrationName: (NSString*) registrationName registration:(
StoredRegistrationEntry* reg = [[StoredRegistrationEntry alloc] init];

reg.RegistrationName = [SBNotificationHubHelper nameOfRegistration:registration];
reg.registrationId = registration.registrationId;
reg.RegistrationId = registration.registrationId;
reg.ETag = registration.ETag;

[self->_registrations setValue:reg forKey:reg.RegistrationName];
Expand All @@ -98,7 +98,7 @@ - (void) updateWithRegistrationName:(NSString*) registrationName registrationId:
StoredRegistrationEntry* reg = [[StoredRegistrationEntry alloc] init];

reg.RegistrationName = registrationName;
reg.registrationId = registrationId;
reg.RegistrationId = registrationId;
reg.ETag = eTag;

[self->_registrations setValue:reg forKey:reg.RegistrationName];
Expand Down
Expand Up @@ -82,11 +82,11 @@ + (NSData*) fromBase64: (NSString*) str{
inputLength--;
}

int outputLength = inputLength * 3 / 4;
NSUInteger outputLength = inputLength * 3 / 4;
NSMutableData* outputData = [NSMutableData dataWithLength:outputLength];
uint8_t* output = outputData.mutableBytes;

int outputPos = 0;
NSUInteger outputPos = 0;
for (int i=0; i<inputLength; i += 4)
{
char i0 = input[i];
Expand Down

0 comments on commit 54e70dc

Please sign in to comment.