summaryrefslogtreecommitdiffstats
path: root/src/pre.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/pre.l')
-rw-r--r--src/pre.l6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pre.l b/src/pre.l
index b14c479..b153942 100644
--- a/src/pre.l
+++ b/src/pre.l
@@ -1996,7 +1996,7 @@ static void processConcatOperators(QCString &expr)
size_t n = match.position();
size_t l = match.length();
//printf("Match: '%s'\n",expr.data()+i);
- if (n+l+1<e.length() && e[n+l]=='@' && expr[n+l+1]=='-')
+ if (n+l+1<e.length() && e[static_cast<int>(n+l)]=='@' && expr[static_cast<int>(n+l+1)]=='-')
{
// remove no-rescan marker after ID
l+=2;
@@ -2004,7 +2004,7 @@ static void processConcatOperators(QCString &expr)
//printf("found '%s'\n",expr.mid(n,l).data());
// remove the ## operator and the surrounding whitespace
e=e.substr(0,n)+e.substr(n+l);
- int k=n-1;
+ int k=static_cast<int>(n)-1;
while (k>=0 && isId(e[k])) k--;
if (k>0 && e[k]=='-' && e[k-1]=='@')
{
@@ -3322,7 +3322,7 @@ static void initPredefined(yyscan_t yyscanner,const char *fileName)
}
else // simple define with argument
{
- int ine=i_equals - (nonRecursive ? 1 : 0);
+ int ine=static_cast<int>(i_equals) - (nonRecursive ? 1 : 0);
def.name = ds.substr(0,ine);
def.definition = ds.substr(i_equals+1);
}