From a8d6aa079056d14ce8d207f8dcf1ed527c0b5ca9 Mon Sep 17 00:00:00 2001 From: inmarket Date: Sat, 15 Nov 2014 15:21:18 +1000 Subject: Fix compiler warnings. --- src/gwin/gwin_list.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/gwin/gwin_list.c b/src/gwin/gwin_list.c index d1039b74..265053e1 100644 --- a/src/gwin/gwin_list.c +++ b/src/gwin/gwin_list.c @@ -211,7 +211,7 @@ static void gwinListDefaultDraw(GWidgetObject* gw, void* param); // select down case 0: for (i = 0, qi = gfxQueueASyncPeek(&gw2obj->list_head); qi; qi = gfxQueueASyncNext(qi), i++) { - if (qi2li->flags & GLIST_FLG_SELECTED) { + if ((qi2li->flags & GLIST_FLG_SELECTED)) { qix = gfxQueueASyncNext(qi); if (qix) { qi2li->flags &=~ GLIST_FLG_SELECTED; @@ -229,7 +229,7 @@ static void gwinListDefaultDraw(GWidgetObject* gw, void* param); qix = 0; for (i = 0; qi; qix = qi, qi = gfxQueueASyncNext(qi), i++) { - if (qi2li->flags & GLIST_FLG_SELECTED) { + if ((qi2li->flags & GLIST_FLG_SELECTED)) if (qix) { qi2li->flags &=~ GLIST_FLG_SELECTED; qix2li->flags |= GLIST_FLG_SELECTED; -- cgit v1.2.3