Skip to content
This repository has been archived by the owner on Dec 18, 2022. It is now read-only.

Commit

Permalink
Fixed warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
NSExceptional committed Aug 31, 2015
1 parent 529e698 commit 1f83493
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Pod/Classes/Model/SKMessage.m
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ - (id)initWithDictionary:(NSDictionary *)json {

- (NSString *)description {
return [NSString stringWithFormat:@"<%@ to/from=%@, text=%@, size={%f, %f}, index=%lu>",
NSStringFromClass(self.class), self.sender?:self.recipients[0], self.text, self.mediaSize.width, self.mediaSize.height, self.index];
NSStringFromClass(self.class), self.sender?:self.recipients[0], self.text, self.mediaSize.width, self.mediaSize.height, (unsigned long)self.index];
}

- (BOOL)isEqual:(id)object {
Expand Down
2 changes: 1 addition & 1 deletion Pod/Classes/Model/SKSnap.m
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ - (id)initWithDictionary:(NSDictionary *)json {

- (NSString *)description {
return [NSString stringWithFormat:@"<%@ to/from=%@, kind=%lu, duration=%f, screenshots=%lu>",
NSStringFromClass(self.class), self.sender?:self.recipient, self.mediaKind, self.mediaTimer, self.screenshots];
NSStringFromClass(self.class), self.sender?:self.recipient, (long)self.mediaKind, self.mediaTimer, (unsigned long)self.screenshots];
}

- (BOOL)isEqual:(id)object {
Expand Down
4 changes: 2 additions & 2 deletions Pod/Classes/Model/SKSnapOptions.m
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ - (id)init {
- (void)setRecipients:(NSArray *)recipients {
NSParameterAssert(recipients.count);
_recipients = recipients;
for (NSString *r in recipients)
NSParameterAssert([r isKindOfClass:[NSString class]]);
// for (NSString *r in recipients)
// NSParameterAssert([r isKindOfClass:[NSString class]]);
}

- (void)setText:(NSString *)text {
Expand Down
2 changes: 1 addition & 1 deletion Pod/Classes/Model/SKSnapResponse.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ - (id)initWithDictionary:(NSDictionary *)json {

- (NSString *)description {
return [NSString stringWithFormat:@"<%@ sender=%@, id=%@, ts=%lu>",
NSStringFromClass(self.class), self.sender, self.identifier, (NSUInteger)self.timestamp.timeIntervalSince1970];
NSStringFromClass(self.class), self.sender, self.identifier, (unsigned long)self.timestamp.timeIntervalSince1970];
}

@end
Expand Down
2 changes: 1 addition & 1 deletion Pod/Classes/Model/SKStoryCollection.m
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ - (id)initWithDictionary:(NSDictionary *)json {

- (NSString *)description {
return [NSString stringWithFormat:@"<%@ username=%@, NSFW=%d count=%lu> stories=%@",
NSStringFromClass(self.class), self.username, self.matureContent, self.stories.count, self.stories];
NSStringFromClass(self.class), self.username, self.matureContent, (unsigned long)self.stories.count, self.stories];
}

- (BOOL)isEqual:(id)object {
Expand Down

0 comments on commit 1f83493

Please sign in to comment.