summaryrefslogtreecommitdiff
path: root/src/sysync/scriptcontext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sysync/scriptcontext.cpp')
-rwxr-xr-xsrc/sysync/scriptcontext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sysync/scriptcontext.cpp b/src/sysync/scriptcontext.cpp
index 7ea4fac..35dff88 100755
--- a/src/sysync/scriptcontext.cpp
+++ b/src/sysync/scriptcontext.cpp
@@ -2448,8 +2448,8 @@ void TScriptContext::Tokenize(TSyncAppBase *aAppBaseP, cAppCharP aScriptName, sI
continue;
}
else if (isdigit(c)) {
- size_t argidx = c-'1';
- if (argidx>=0 && argidx<aMacroArgsP->size()) {
+ ssize_t argidx = c-'1';
+ if (argidx>=0 && (size_t)argidx<aMacroArgsP->size()) {
// found macro argument, replace in input string
itext.replace(i-1, 2, (*aMacroArgsP)[argidx]);
// no nested macro argument eval, just advance pointer behind replacement text