(gauge_callback): fix -Wconversion warnings.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andreas Mohr 2015-11-15 20:03:48 +03:00 committed by Andrew Borodin
parent 5007d309bc
commit a613de7183

View File

@ -80,8 +80,8 @@ gauge_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *d
{
int gauge_len;
int percentage, columns;
long total = g->max;
long done = g->current;
int total = g->max;
int done = g->current;
if (total <= 0 || done < 0)
{