Skip to content

Commit

Permalink
Minor type changes
Browse files Browse the repository at this point in the history
  • Loading branch information
davedelong committed Jan 4, 2014
1 parent eb77e59 commit 05a7b06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DDMathParser/DDMathStringToken.m
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ - (NSString *)debugDescription {
[d appendFormat:@"arity:%@, ", arityNames[arity]];

NSInteger precedence = [self operatorPrecedence];
[d appendFormat:@"precedence:%ld, ", precedence];
[d appendFormat:@"precedence:%ld, ", (long)precedence];

DDOperatorAssociativity assoc = [self operatorAssociativity];
NSString *assocNames[2] = { @"LEFT", @"RIGHT" };
Expand Down
2 changes: 1 addition & 1 deletion DDMathParser/_DDFunctionEvaluator.m
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ + (NSOrderedSet *)standardFunctions {
NSString *selector = NSStringFromSelector(method_getName(m));
NSString *suffix = _DDFunctionSelectorSuffix;
if ([selector hasSuffix:suffix]) {
NSInteger index = [selector length] - [suffix length];
NSUInteger index = [selector length] - [suffix length];
NSString *functionName = [selector substringToIndex:index];
if ([functionName isEqualToString:@"evaluateFunction"] == NO) {
[set addObject:functionName];
Expand Down

0 comments on commit 05a7b06

Please sign in to comment.