signed/unsigned mismatch

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2825 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2003-09-04 19:08:03 +00:00
parent 9ee58d14f8
commit 9fddafacdb
2 changed files with 4 additions and 4 deletions

View file

@ -85,7 +85,7 @@ class LangStringList : public SortedStringListND<struct langstring>
const char *offset2name(int name)
{
if ((unsigned int)name > strings.getlen())
if ((unsigned int)name > (unsigned int)strings.getlen())
return 0;
return (const char*)strings.get() + name;
@ -163,7 +163,7 @@ class StringsArray
if (idx < 0)
return 0;
if (idx >= (offsets.getlen() / sizeof(int)))
if (idx >= (int)(offsets.getlen() / sizeof(int)))
resize(idx+1);
int old = ((int*)offsets.get())[idx];