Skip to content
This repository was archived by the owner on Aug 27, 2022. It is now read-only.

Commit a5377fa

Browse files
committed
slightly more accurate type for initDataBytesLength IMP (const char instead of char), 129 total
1 parent 79eafd4 commit a5377fa

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

MPWMAXParser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ typedef id (*XMLIMP1)(id, SEL, id);
6565
typedef id (*XMLIMP2)(id, SEL, id,id);
6666
typedef id (*XMLIMPCHARPLONG)(id, SEL, char *,long);
6767
typedef id (*XMLIMP3)(id, SEL, id,id,id);
68-
typedef id (*XMLIMP1CharP1L1)(id, SEL, id,char*,long);
68+
typedef id (*XMLIMP1CharP1L1)(id, SEL, id,const char*,long);
6969
typedef id (*XMLIMP4)(id, SEL, id,id,id,id);
7070
typedef id (*XMLIMP5)(id, SEL, id,id,id,id,id);
7171
typedef id (*XMLIMP6)(id, SEL, id,id,id,id,id,id);

MPWNSXMLDocumentParser.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ -(BOOL)makeSpace:(const char*)start length:(int)len
110110
-undeclaredElement:children attributes:attributes parser:parser
111111
{
112112
id element=nil;
113-
int i,max=[attributes count];
113+
long i,max=[attributes count];
114114
//sub=[NSArray arrayWithObjects:objs count:count];
115115
element = [[NSXMLElement alloc] initWithName:CURRENTTAG];
116116
if ( [children count] ) {

MPWXmlParser.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ -(BOOL)beginElement:(const char*)fullyQualifedPtr length:(long)len nameLen:(long
258258
return YES;
259259
}
260260

261-
-(BOOL)makeSpace:(const char*)start length:(long)len
261+
-(BOOL)makeSpace:(const char*)start length:(long)len
262262
/*"
263263
Call-back for spaces. Create text data.
264264
"*/

0 commit comments

Comments
 (0)