From 0cac95475ec3b476eba828e5ba2dea2911115336 Mon Sep 17 00:00:00 2001 From: anders_k Date: Mon, 7 Dec 2015 01:51:26 +0000 Subject: [PATCH] !define /math >>> result is unsigned git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6655 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/script.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/script.cpp b/Source/script.cpp index 273506c1..12013a57 100644 --- a/Source/script.cpp +++ b/Source/script.cpp @@ -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);