summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-06-16 21:22:19 +0100
committerAidan MacDonald <amachronic@protonmail.com>2021-06-16 21:22:49 +0100
commit7aade87863329dd486f092a96aef5add1c3cd5a0 (patch)
tree555dbe3ba0ef9148f725f492c0465cb037824653
parent9ccae0421a356c79d3d6cdbdbd9798a60f8d1ed7 (diff)
downloadrockbox-7aade87863.tar.gz
rockbox-7aade87863.zip
Fix yellow from 9ccae042
Change-Id: Iad4eaab8b766d1d0aad051971fd49a64126ca4be
-rw-r--r--apps/plugins/calculator.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/plugins/calculator.c b/apps/plugins/calculator.c
index 45d3643a70..cbaea8aa7e 100644
--- a/apps/plugins/calculator.c
+++ b/apps/plugins/calculator.c
@@ -1154,6 +1154,8 @@ static void doExponent(double* operandOne, int* powerOne,
if (*operandOne < 0)
{
#if MEMORYSIZE < 8
+ (void)negativeBuffer;
+ (void)lastDigit;
calStatus=cal_error;
return;
#else
@@ -1903,9 +1905,6 @@ static void sciButtonsProcess(void){
case sci_xy:
if(!operInputted) {twoOperands(); operInputted = true;}
oper = '^';
-#ifdef CALCULATOR_OPERATORS
- case_cycle_operators: /* F2 shortkey entrance */
-#endif
if (calStatus == cal_typing ||
calStatus == cal_dotted)
calStatus = cal_normal;