Skip to content

Commit

Permalink
credit_manager: use int type throughout (no-op)
Browse files Browse the repository at this point in the history
  • Loading branch information
stapelberg committed Nov 13, 2023
1 parent b44ef4c commit df9b1ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/credit_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,13 @@ int8_t find_credit_idx(char *name) {
static void deposit_credit_idx(int8_t i) {
char *time = get_time();
struct credits_t *credit = &credits.credits[i];
unsigned int deposit;
int deposit;

cprintf("\r\nEinzahlung in Cent:\r\n");
if ((deposit = cget_number(0)) == 0)
return;

credit->credit += (signed int)deposit;
credit->credit += deposit;

sprintf(print_buffer,
"%c%s - %d Cent f" uUML "r %s eingezahlt, total: %d Cent\r", 17, time,
Expand Down

0 comments on commit df9b1ad

Please sign in to comment.