Permalink
Browse files

Pacify Xcode 4.1.

  • Loading branch information...
1 parent b8359c6 commit 0ef031dbf000f803bc5667e38fd2461086606f87 Jordan Breeding committed May 4, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 JSONKit.m
View
@@ -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; } }

0 comments on commit 0ef031d

Please sign in to comment.