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

Commit 2dd6ee8

Browse files
committed
makeText:... -> long, + misc fixes, 99 total
1 parent 19b49bc commit 2dd6ee8

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

MPWMAXParser.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1812,7 +1812,7 @@ +(void)testRewriteOfPlainDOM
18121812
[parser parse:xmlData];
18131813
dom=[parser parseResult];
18141814
[writer writeObject:dom];
1815-
IDEXPECT( [[[writer target] target] stringValue], [xmlData stringValue], @"rewritten data");
1815+
IDEXPECT( [[(id)[writer target] target] stringValue], [xmlData stringValue], @"rewritten data");
18161816
}
18171817

18181818
+(void)testRewriteOfLazyDOM
@@ -1825,7 +1825,7 @@ +(void)testRewriteOfLazyDOM
18251825
[parser parse:xmlData];
18261826
dom=[parser parseResult];
18271827
[writer writeObject:dom];
1828-
IDEXPECT( [[[writer target] target] stringValue], [xmlData stringValue], @"rewritten data");
1828+
IDEXPECT( [[(id)[writer target] target] stringValue], [xmlData stringValue], @"rewritten data");
18291829
}
18301830

18311831
+(void)testUTF8Attributes

MPWMAXParser_private.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ objectAccessor_h( NSError, parserError, setParserError )
119119

120120
-(void)setData:newData;
121121

122-
-(BOOL)makeText:(const char*)start length:(int)len firstEntityOffset:(int)entityOffset;
122+
-(BOOL)makeText:(const char*)start length:(long)len firstEntityOffset:(long)entityOffset;
123123
-(void)pushObject:anObject forKey:aKey withNamespace:aNamespace;
124124
-(int)dataEncoding;
125125
-(void)setDataEncoding:(int)newEncoding;

MPWXmlAppleProplistReader.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ @implementation MPWXmlAppleProplistReader
6060
-dictElement:(MPWXMLAttributes*)children attributes:(id <NSXMLAttributes>)attrs parser:(MPWMAXParser*)parser
6161
{
6262
id *objs=[children _pointerToObjects];
63-
int count=[children count];
63+
long count=[children count];
6464
id keys[count/2+1],values[count/2+1];
6565
int i;
6666
for (i=0;i<count/2;i++) {
@@ -126,7 +126,7 @@ @implementation MPWXmlAppleProplistReader
126126
-stringElement:(id <NSXMLAttributes>)children attributes:(id <NSXMLAttributes>)attrs parser:(MPWMAXParser*)parser
127127
{
128128
id result=nil;
129-
int count=[children count];
129+
long count=[children count];
130130
if ( count == 1 ) {
131131
result = [[children lastObject] retain];
132132
} else {
@@ -154,7 +154,7 @@ @implementation MPWXmlAppleProplistReader
154154
-dateElement:(MPWXMLAttributes*)children attributes:(id <NSXMLAttributes>)attrs parser:(MPWMAXParser*)parser
155155
{
156156
id dateString = [children lastObject];
157-
int len=[dateString length];
157+
long len=[dateString length];
158158
CFGregorianDate date;
159159
char temp[ len+1];
160160
int year,month,day,hour,minute,second;

0 commit comments

Comments
 (0)