Permalink
Browse files

Fixed string formatting of unsigned integer

  • Loading branch information...
1 parent 05da92b commit 96b5bf0b5a1170d5507c45bd138b725cd26cabc9 @sebreh sebreh committed Jan 22, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 PodioKit/API/PKPromotionAPI.m
@@ -15,11 +15,11 @@ + (PKRequest *)requestForPromotionInContext:(PKPromotionContext)context {
}
+ (PKRequest *)requestToClickPromotionWithId:(NSUInteger)promotionId {
- return [PKRequest postRequestWithURI:[NSString stringWithFormat:@"/promotion/%d/click", promotionId]];
+ return [PKRequest postRequestWithURI:[NSString stringWithFormat:@"/promotion/%lu/click", (unsigned long)promotionId]];
}
+ (PKRequest *)requestToEndPromotionWithId:(NSUInteger)promotionId {
- return [PKRequest postRequestWithURI:[NSString stringWithFormat:@"/promotion/%d/end", promotionId]];
+ return [PKRequest postRequestWithURI:[NSString stringWithFormat:@"/promotion/%lu/end", (unsigned long)promotionId]];
}
@end

0 comments on commit 96b5bf0

Please sign in to comment.