Permalink
Browse files

Merge pull request #24 from shouze/master

_DDOperatorInfo.m : fixing a compilation warning about unused baseInfo
  • Loading branch information...
2 parents f44b6c0 + 9bbfa90 commit ae7688a264c0ecac252c879567f77212e604f7af @davedelong committed May 1, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 DDMathParser/_DDOperatorInfo.m
@@ -51,9 +51,10 @@ + (NSArray *)infosForOperatorFunction:(NSString *)operator {
}
// this is to make sure all of the operators are defined correctly
+ _DDOperatorInfo *baseInfo = nil;
for (NSString *functionName in _operatorLookup) {
NSArray *operatorInfos = [_operatorLookup objectForKey:functionName];
- _DDOperatorInfo *baseInfo = [operatorInfos lastObject];
+ baseInfo = [operatorInfos lastObject];
for (_DDOperatorInfo *info in operatorInfos) {
NSAssert([info precedence] == [baseInfo precedence], @"mismatched operator precedences");
NSAssert([info arity] == [baseInfo arity], @"mismatched operator arity");

0 comments on commit ae7688a

Please sign in to comment.