From bc105033753b39fadf5a0883a5d90ac4415ca359 Mon Sep 17 00:00:00 2001 From: kichik Date: Sat, 21 Dec 2002 23:13:50 +0000 Subject: [PATCH] Unsigned/signed warnings git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1992 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/lang.cpp | 2 +- Source/script.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/lang.cpp b/Source/lang.cpp index 65f664cc..4cd85a0c 100644 --- a/Source/lang.cpp +++ b/Source/lang.cpp @@ -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); } diff --git a/Source/script.cpp b/Source/script.cpp index 532d4f44..ef5b639b 100644 --- a/Source/script.cpp +++ b/Source/script.cpp @@ -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