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:
parent
34acda7505
commit
bc10503375
2 changed files with 2 additions and 2 deletions
|
@ -235,7 +235,7 @@ int CEXEBuild::SetUserString(char *name, LANGID lang, char *string, int process/
|
||||||
user_strings_list->add(name, 0);
|
user_strings_list->add(name, 0);
|
||||||
if (string) user_strings_list->find(name, 0, &idx);
|
if (string) user_strings_list->find(name, 0, &idx);
|
||||||
unsigned int new_size = user_strings_list->getnum() * sizeof(int);
|
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);
|
if (uninst) string_tables[i]->user_ustrings.resize(new_size, 1);
|
||||||
else string_tables[i]->user_strings.resize(new_size, 1);
|
else string_tables[i]->user_strings.resize(new_size, 1);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1680,7 +1680,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line, FILE *fp, const char
|
||||||
char *incfile=(char*)malloc(size);
|
char *incfile=(char*)malloc(size);
|
||||||
|
|
||||||
for (unsigned int i=0; i<dirs; i++) {
|
for (unsigned int i=0; i<dirs; i++) {
|
||||||
if (size < lstrlen(f)+lstrlen(dir))
|
if (size < (unsigned int)lstrlen(f)+lstrlen(dir))
|
||||||
{
|
{
|
||||||
free(incfile);
|
free(incfile);
|
||||||
size+=lstrlen(dir);
|
size+=lstrlen(dir);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue