Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion KissXML/DDXMLDocument.m
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ - (id)initWithData:(NSData *)data options:(NSUInteger)mask error:(NSError **)err
// Therefore, we call it again here just to be safe.
xmlKeepBlanksDefault(0);

xmlDocPtr doc = xmlParseMemory([data bytes], [data length]);
xmlDocPtr doc = xmlParseMemory([data bytes], (int)[data length]);
if (doc == NULL)
{
if (error) *error = [NSError errorWithDomain:@"DDXMLErrorDomain" code:1 userInfo:nil];
Expand Down