Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Commit 25dcf41

Browse files
committed
Merge pull request SBJson#98 from arciem/master
Fixed compiler errors with latest LLVM
2 parents f9b0f91 + f194d0f commit 25dcf41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Classes/SBJsonUTF8Stream.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ - (void)appendData:(NSData *)data_ {
6262
[_data appendData:data_];
6363

6464
// This is an optimisation.
65-
_bytes = [_data bytes];
65+
_bytes = (const char*)[_data bytes];
6666
_length = [_data length];
6767
}
6868

@@ -126,7 +126,7 @@ - (BOOL)haveRemainingCharacters:(NSUInteger)chars {
126126
}
127127

128128
- (BOOL)skipCharacters:(const char *)chars length:(NSUInteger)len {
129-
const void *bytes = [_data bytes] + _index;
129+
const void *bytes = ((const char*)[_data bytes]) + _index;
130130
if (!memcmp(bytes, chars, len)) {
131131
_index += len;
132132
return YES;

0 commit comments

Comments
 (0)