From: matze Date: Thu, 25 Oct 2007 12:21:25 +0000 (+0000) Subject: items can now be returned (fixing ticket #8) X-Git-Tag: rgb2rv6~50 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=91f9764228c184304082bee612981de3d158e60b;p=c128-kasse 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 --- 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; }