Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated %d to %@ when formatting the bookmark ID #3

Merged
merged 3 commits into from Sep 12, 2011
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions InstapaperKit/IKBookmark.m
Expand Up @@ -59,9 +59,9 @@ - (id)initWithBookmarkID:(NSInteger)bookmarkID

- (NSString *)description
{
return [NSString stringWithFormat:@"<%@: %@ (%d), URL:(%@)>", NSStringFromClass([self class]),
return [NSString stringWithFormat:@"<%@: %@ (%ld), URL:(%@)>", NSStringFromClass([self class]),
self.title,
self.bookmarkID,
(long)self.bookmarkID,
self.URL];
}

Expand Down
6 changes: 3 additions & 3 deletions InstapaperKit/IKEngine.m
Expand Up @@ -151,9 +151,9 @@ - (NSString *)bookmarksInFolder:(IKFolder *)folder limit:(NSUInteger)limit exist
NSMutableString *have = [NSMutableString string];
if ([bookmarks count] > 0) {
for (IKBookmark *bookmark in bookmarks) {
[have appendFormat:@"%d", bookmark.bookmarkID];
if (bookmark.hash) {
[have appendFormat:@":%@", bookmark.hash];
[have appendFormat:@"%ld", (long)bookmark.bookmarkID];
if (bookmark.hashString) {
[have appendFormat:@":%@", bookmark.hashString];
}
if (bookmark.progressDate && bookmark.progress != -1.0f) {
int timestamp = (int)[bookmark.progressDate timeIntervalSince1970];
Expand Down
2 changes: 1 addition & 1 deletion InstapaperKit/Third Party/JSONKit
Submodule JSONKit updated 3 files
+23 −5 JSONKit.h
+101 −55 JSONKit.m
+65 −44 README.md