Skip to content


Subversion checkout URL

You can clone with
Download ZIP


_DDOperatorInfo.m : fixing a compilation warning about unused baseInfo #24

merged 1 commit into from

2 participants


I don't know if it was an optimisation.
This way the change I've made shouldn't have any impact neither on performance nor behavior.

@davedelong davedelong merged commit ae7688a into davedelong:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 1, 2012
  1. @shouze
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 1 deletion.
  1. +2 −1  DDMathParser/_DDOperatorInfo.m
3  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");
Something went wrong with that request. Please try again.