Skip to content

Commit

Permalink
Pacify Xcode 4.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Breeding committed May 4, 2011
1 parent b8359c6 commit 0ef031d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JSONKit.m
Expand Up @@ -1551,7 +1551,7 @@ static int jk_parse_string(JKParseState *parseState) {
break;

case JSONStringStateEscapedNeedEscapeForSurrogate:
if((currentChar == '\\')) { stringState = JSONStringStateEscapedNeedEscapedUForSurrogate; }
if(currentChar == '\\') { stringState = JSONStringStateEscapedNeedEscapedUForSurrogate; }
else {
if((parseState->parseOptionFlags & JKParseOptionLooseUnicode) == 0) { jk_error(parseState, @"Required a second \\u Unicode escape sequence following a surrogate \\u Unicode escape sequence."); stringState = JSONStringStateError; goto finishedParsing; }
else { stringState = JSONStringStateParsing; atStringCharacter--; if(jk_string_add_unicodeCodePoint(parseState, UNI_REPLACEMENT_CHAR, &tokenBufferIdx, &stringHash)) { jk_error(parseState, @"Internal error: Unable to add UTF8 sequence to internal string buffer. %@ line #%ld", [NSString stringWithUTF8String:__FILE__], (long)__LINE__); stringState = JSONStringStateError; goto finishedParsing; } }
Expand Down

0 comments on commit 0ef031d

Please sign in to comment.