Skip to content

Commit bcaf007

Browse files
author
Jean-Charles BERTIN
committed
Fixed compilation warning.
1 parent 4866086 commit bcaf007

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

JSONKit.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2879,7 +2879,7 @@ static int jk_encode_add_atom_to_buffer(JKEncodeState *encodeState, const void *
28792879
{
28802880
int printComma = 0;
28812881
CFIndex dictionaryCount = CFDictionaryGetCount((CFDictionaryRef)object), idx = 0L;
2882-
id enumerateObject = JK_EXPECT_F(_jk_encode_prettyPrint) ? [[object allKeys] sortedArrayUsingSelector:@selector(compare:)] : object;
2882+
id enumerateObject = JK_EXPECT_F(_jk_encode_prettyPrint) ? [[(NSDictionary*)object allKeys] sortedArrayUsingSelector:@selector(compare:)] : object;
28832883

28842884
if(JK_EXPECT_F(jk_encode_write1(encodeState, 1L, "{"))) { return(1); }
28852885
if(JK_EXPECT_F(_jk_encode_prettyPrint) || JK_EXPECT_F(dictionaryCount > 1024L)) {

0 commit comments

Comments
 (0)