Skip to content

Commit

Permalink
Fix up compile warnings when compiling under LLVM 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Tindal committed May 6, 2011
1 parent 60f6063 commit 6317965
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/core/OnigRegexpUtility.m
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ - (NSArray*)__split:(id)pattern limit:(NSNumber*)limitNum
BOOL lastNull = NO; BOOL lastNull = NO;


OnigResult* res; OnigResult* res;
while (res = [pattern search:target start:start]) { while ((res = [pattern search:target start:start])) {
NSRange range = [res bodyRange]; NSRange range = [res bodyRange];
int end = range.location; int end = range.location;
int right = NSMaxRange(range); int right = NSMaxRange(range);
Expand Down Expand Up @@ -223,7 +223,7 @@ - (NSString*)__replaceAllByRegexp:(id)pattern withCallback:(ReplaceCallback)cp d
} }
if ([self length] < offset) break; if ([self length] < offset) break;


} while (res = [pattern search:self start:offset]); } while ((res = [pattern search:self start:offset]));


if (offset < [self length]) { if (offset < [self length]) {
[s appendString:[self substringFromIndex:offset]]; [s appendString:[self substringFromIndex:offset]];
Expand Down

0 comments on commit 6317965

Please sign in to comment.