mirror of
https://github.com/brmlab/brmbar.git
synced 2025-06-08 13:24:01 +02:00
fix sign
This commit is contained in:
parent
9d4739bae0
commit
a26d1eeb95
3 changed files with 56 additions and 53 deletions
2
brmbar.c
2
brmbar.c
|
@ -102,7 +102,7 @@ void read_input()
|
|||
last_item = -2;
|
||||
printf("\n%s\n\n", items[i].name);
|
||||
} else
|
||||
if (items[i].price > 0) {
|
||||
if (items[i].price < 0) {
|
||||
last_item = i;
|
||||
printf("\n%s %d Kc\n\n", items[i].name, abs(items[i].price));
|
||||
} else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue