Unsigned/signed warnings

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1992 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2002-12-21 23:13:50 +00:00
parent 34acda7505
commit bc10503375
2 changed files with 2 additions and 2 deletions

View file

@ -235,7 +235,7 @@ int CEXEBuild::SetUserString(char *name, LANGID lang, char *string, int process/
user_strings_list->add(name, 0);
if (string) user_strings_list->find(name, 0, &idx);
unsigned int new_size = user_strings_list->getnum() * sizeof(int);
for (int i = 0; i < string_tables.size(); i++) {
for (unsigned int i = 0; i < string_tables.size(); i++) {
if (uninst) string_tables[i]->user_ustrings.resize(new_size, 1);
else string_tables[i]->user_strings.resize(new_size, 1);
}

View file

@ -1680,7 +1680,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line, FILE *fp, const char
char *incfile=(char*)malloc(size);
for (unsigned int i=0; i<dirs; i++) {
if (size < lstrlen(f)+lstrlen(dir))
if (size < (unsigned int)lstrlen(f)+lstrlen(dir))
{
free(incfile);
size+=lstrlen(dir);