Skip to content

Commit

Permalink
Specify auto types
Browse files Browse the repository at this point in the history
  • Loading branch information
minacode authored Dec 7, 2024
1 parent f871487 commit acf38e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/displayapp/screens/Calculator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit acf38e9

Please sign in to comment.