CComponentsForm: Fix compiler warning (-Wsign-compare)

Origin commit data
------------------
Branch: ni/coolstream
Commit: 4c2704fb2f
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-09-21 (Sun, 21 Sep 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Michael Liebmann
2014-09-21 16:16:07 +02:00
committed by [CST] Focus
parent a6229086f1
commit e274e34962

View File

@@ -553,7 +553,7 @@ void CComponentsForm::setSelectedItem(int item_id)
size_t count = v_cc_items.size();
int id = item_id;
if (id > (count-1) || id < 0 || (count == 0)){
if (id > (int)(count-1) || id < 0 || (count == 0)){
dprintf(DEBUG_NORMAL, "[CComponentsForm] [%s - %d] invalid parameter item_id = %u, available items = %u, allowed values are: 0...%u! \n", __func__,
__LINE__,
item_id,
@@ -567,7 +567,7 @@ void CComponentsForm::setSelectedItem(int item_id)
if (id < 0)
id = count-1;
//jump to 1st item, if id is out of range, avoids also possible segfault
if (id > (count-1))
if (id > (int)(count-1))
id = 0;
}