util.h: Use size_t for static array sizes

This commit is contained in:
Jonas Kulla 2014-07-19 00:49:25 +02:00
parent 20e46a98dd
commit ccba946973
3 changed files with 5 additions and 5 deletions

View file

@ -332,7 +332,7 @@ struct InputPrivate
{
int index;
if (code < 0 || code > mapToIndexN-1)
if (code < 0 || (size_t) code > mapToIndexN-1)
index = 0;
else
index = mapToIndex[code];