diff --git a/src/main/c/calculator.h b/src/main/c/calculator.h index a559fa6..0a34ca1 100644 --- a/src/main/c/calculator.h +++ b/src/main/c/calculator.h @@ -85,6 +85,6 @@ double ConClock(double time, int startingUnit, int endingUnit); double ConTime(double time, int startingUnit, int endingUnit); -int performOperation(int num1, char operator, int num2); +int performOperation(int num1, char operatorType, int num2); #endif // CALCULATOR diff --git a/src/main/c/programmingMode.c b/src/main/c/programmingMode.c index 40da798..f9a4ebb 100644 --- a/src/main/c/programmingMode.c +++ b/src/main/c/programmingMode.c @@ -22,8 +22,8 @@ char getOperatorInput() { } // Calculation -int performOperation(int num1, char operator, int num2) { - switch (operator) { +int performOperation(int num1, char operatorType, int num2) { + switch (operatorType) { case '+': return num1 + num2; case '-':