Skip to content

Commit e1cb174

Browse files
committed
Change a NSException from exceptionWithName: to raise:. Closes johnezang#20.
1 parent 862fa4d commit e1cb174

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
@@ -2790,7 +2790,7 @@ - (id)serializeObject:(id)object options:(JKSerializeOptionFlags)optionFlags enc
27902790
id returnObject = NULL;
27912791

27922792
if(encodeState != NULL) { [self releaseState]; }
2793-
if((encodeState = (struct JKEncodeState *)calloc(1UL, sizeof(JKEncodeState))) == NULL) { [NSException exceptionWithName:NSMallocException reason:@"Unable to allocate state structure." userInfo:NULL]; return(NULL); }
2793+
if((encodeState = (struct JKEncodeState *)calloc(1UL, sizeof(JKEncodeState))) == NULL) { [NSException raise:NSMallocException format:@"Unable to allocate state structure."]; return(NULL); }
27942794

27952795
if((error != NULL) && (*error != NULL)) { *error = NULL; }
27962796

0 commit comments

Comments
 (0)