From 91f9764228c184304082bee612981de3d158e60b Mon Sep 17 00:00:00 2001 From: matze Date: Thu, 25 Oct 2007 12:21:25 +0000 Subject: [PATCH] items can now be returned (fixing ticket #8) git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@59 af93e077-1a23-4f1e-9cbe-9382a9d578f5 --- src/kasse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kasse.c b/src/kasse.c index 3cb30b5..74b9553 100644 --- a/src/kasse.c +++ b/src/kasse.c @@ -135,7 +135,7 @@ void buy(BYTE n) { * to NULL if no such credit could be found */ for (c = 0; c < credits.num_items; ++c) if (strncmp(nickname, credits.credits[c].nickname, nickname_len) == 0) { - if (credits.credits[c].credit < (status.status[n].price * einheiten)) { + if ((signed int)credits.credits[c].credit < ((signed int)status.status[n].price * einheiten)) { cprintf("Sorry, %s hat nicht genug Geld :-(\r\n", nickname); return; } -- 2.39.5