static int XRCID_Lookup(const char *str_id, int value_if_not_found = wxID_NONE)
{
- int index = 0;
+ unsigned int index = 0;
- for (const char *c = str_id; *c != '\0'; c++) index += (int)*c;
+ for (const char *c = str_id; *c != '\0'; c++) index += (unsigned int)*c;
index %= XRCID_TABLE_SIZE;
XRCID_record *oldrec = NULL;