Skip to content

Commit 74d9e7e

Browse files
authored
resolve string type error in GTBlob.m
macosx: 10.13.4, XCode Version 9.3 (9E145) reported this error compiling line 43 in GTBlob.m: Format specifies type 'ssize_t' (aka 'long') but the argument has type 'git_off_t' (aka 'long long') and suggested this fix: Replace '%zi' with '%lli' After applying the change xcode built objective-git successfully
1 parent cc7e8d7 commit 74d9e7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ObjectiveGit/GTBlob.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
@implementation GTBlob
4141

4242
- (NSString *)description {
43-
return [NSString stringWithFormat:@"<%@: %p> size: %zi, content: %@, data = %@", NSStringFromClass([self class]), self, [self size], [self content], [self data]];
43+
return [NSString stringWithFormat:@"<%@: %p> size: %%lli, content: %@, data = %@", NSStringFromClass([self class]), self, [self size], [self content], [self data]];
4444
}
4545

4646

0 commit comments

Comments
 (0)