Permalink
Browse files

Updated %d to %ld when formatting the bookmarkID as an NSInteger is 6…

…4 bits on a 64-bit build.
  • Loading branch information...
1 parent 07ddcab commit 038e4ae5f3c7535e6fbef4bcd2881d7a5f3df7b1 Maurice Kelly committed Sep 6, 2011
Showing with 3 additions and 3 deletions.
  1. +2 −2 InstapaperKit/IKBookmark.m
  2. +1 −1 InstapaperKit/IKEngine.m
@@ -59,9 +59,9 @@ - (id)initWithBookmarkID:(NSInteger)bookmarkID
- (NSString *)description
{
- return [NSString stringWithFormat:@"<%@: %@ (%@), URL:(%@)>", NSStringFromClass([self class]),
+ return [NSString stringWithFormat:@"<%@: %@ (%ld), URL:(%@)>", NSStringFromClass([self class]),
self.title,
- self.bookmarkID,
+ (long)self.bookmarkID,
self.URL];
}
View
@@ -151,7 +151,7 @@ - (NSString *)bookmarksInFolder:(IKFolder *)folder limit:(NSUInteger)limit exist
NSMutableString *have = [NSMutableString string];
if ([bookmarks count] > 0) {
for (IKBookmark *bookmark in bookmarks) {
- [have appendFormat:@"%@", bookmark.bookmarkID];
+ [have appendFormat:@"%ld", (long)bookmark.bookmarkID];
if (bookmark.hashString) {
[have appendFormat:@":%@", bookmark.hashString];
}

0 comments on commit 038e4ae

Please sign in to comment.