Permalink
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...
1 parent 6bc74a1 commit 785411e7ad27df06c358a20c1f76822f3807fb96 @confucious confucious committed Aug 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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; }

0 comments on commit 785411e

Please sign in to comment.