!define /math >>> result is unsigned
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6655 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
ef1ae2e216
commit
0cac95475e
1 changed files with 1 additions and 1 deletions
|
@ -3103,7 +3103,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line)
|
|||
} else if (!_tcscmp(mathop,_T(">>"))) {
|
||||
_stprintf(value,_T("%d"),(signed int)value1>>(signed int)value2);
|
||||
} else if (!_tcscmp(mathop,_T(">>>"))) {
|
||||
_stprintf(value,_T("%d"),(unsigned int)value1>>(unsigned int)value2);
|
||||
_stprintf(value,_T("%u"),(unsigned int)value1>>(unsigned int)value2);
|
||||
} else if (!_tcscmp(mathop,_T("/"))) {
|
||||
if (value2==0) {
|
||||
ERROR_MSG(_T("!define /math: division by zero! (\"%i %") NPRIs _T(" %i\")\n"),value1,mathop,value2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue