Permalink
Browse files

Tweaks

  • Loading branch information...
1 parent 832ed11 commit 0bff4ee56c86fbbde8a194e5d4f359567609cbc5 @davedelong committed Dec 16, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 DDMathParser/_DDFunctionUtilities.m
  2. +1 −1 DDMathParser/_DDOperatorInfo.m
@@ -543,7 +543,7 @@ + (DDMathFunction) percentFunction {
}
BOOL percentIsRightArgument = ([[percentContext arguments] objectAtIndex:1] == percentExpression);
- if ([operatorInfo defaultAssociativity] == DDOperatorAssociativityLeft && !percentIsRightArgument) {
+ if (!percentIsRightArgument) {
if (error) {
*error = ERR(DDErrorCodeInvalidFormat, @"unable to determine context for percent");
}
@@ -8,7 +8,7 @@
#import "_DDOperatorInfo.h"
-#define PERCENT_AS_MOD 0
+#define PERCENT_AS_MOD 1
@implementation _DDOperatorInfo

0 comments on commit 0bff4ee

Please sign in to comment.