Permalink
Browse files

Merge pull request #22 from jordanbreeding/master

Pull Xcode 4.1 update.
  • Loading branch information...
2 parents b8359c6 + 0ef031d commit 7e4d3ec254a521f09e0894bf75dd160fbc3fc886 @johnezang committed May 5, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 JSONKit.m
View
2 JSONKit.m
@@ -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 7e4d3ec

Please sign in to comment.