wrong strcmp for !define /math division
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4532 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
9aaf2bd9a2
commit
9ec765a72b
1 changed files with 1 additions and 1 deletions
|
@ -2733,7 +2733,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line)
|
|||
sprintf(value,"%d",value1-value2);
|
||||
} else if (!strcmp(mathop,"*")) {
|
||||
sprintf(value,"%d",value1*value2);
|
||||
} else if (!strcmp(mathop,"%")) {
|
||||
} else if (!strcmp(mathop,"/")) {
|
||||
if (value2==0) {
|
||||
ERROR_MSG("!define /math: division by zero! (\"%i / %i\")\n",value1,value2);
|
||||
return PS_ERROR;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue