Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix bug where jk_encode_add_atom_to_buffer does not look at the prope…

…r object after handling an unsupported class.
  • Loading branch information...
commit 785411e7ad27df06c358a20c1f76822f3807fb96 1 parent 6bc74a1
Jerry Hsu confucious authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  JSONKit.m
2  JSONKit.m
View
@@ -2600,7 +2600,7 @@ static int jk_encode_add_atom_to_buffer(JKEncodeState *encodeState, void *object
BOOL workAroundMacOSXABIBreakingBug = (JK_EXPECT_F(((NSUInteger)object) & 0x1)) ? YES : NO;
- void *objectISA = (JK_EXPECT_F(workAroundMacOSXABIBreakingBug)) ? NULL : *((void **)objectPtr);
+ void *objectISA = (JK_EXPECT_F(workAroundMacOSXABIBreakingBug)) ? NULL : *((void **)object);
if(JK_EXPECT_F(workAroundMacOSXABIBreakingBug)) { goto slowClassLookup; }
if(JK_EXPECT_T(objectISA == encodeState->fastClassLookup.stringClass)) { isClass = JKClassString; }
Please sign in to comment.
Something went wrong with that request. Please try again.