From acf38e973eaf83e810428d9dd40c16ac0ba475bb Mon Sep 17 00:00:00 2001 From: Max Friedrich Date: Sat, 7 Dec 2024 17:52:58 +0100 Subject: [PATCH] Specify auto types --- src/displayapp/screens/Calculator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/displayapp/screens/Calculator.cpp b/src/displayapp/screens/Calculator.cpp index fd312a725a..36474d4eeb 100644 --- a/src/displayapp/screens/Calculator.cpp +++ b/src/displayapp/screens/Calculator.cpp @@ -84,8 +84,8 @@ void Calculator::HandleInput() { case '9': { // *buttonText is the first char in buttonText // "- '0'" results in the int value of the char - auto digit = (*buttonText) - '0'; - auto sign = (value < 0) ? -1 : 1; + uint8_t digit = (*buttonText) - '0'; + int8_t sign = (value < 0) ? -1 : 1; // if this is true, we already pressed the . button if (offset < FIXED_POINT_OFFSET) {