summaryrefslogtreecommitdiff
path: root/soltools/mkdepend/ifparser.c
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-12-09 10:24:09 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-12-09 10:24:09 +0100
commit7e12a6cccb42711c0399bbcd0e7cc3008f56cd2f (patch)
tree75a1b7989253eb5535c1f707997897df4334f9ab /soltools/mkdepend/ifparser.c
parenta6d3c97473ed9c17b6cbf12045155da3198d1b49 (diff)
warning C4267: conversion from 'size_t' to 'int' (MSVC 64-bit)
Change-Id: I2fa40ebe467a65b0d6023883a14c79ff4303bb2f
Diffstat (limited to 'soltools/mkdepend/ifparser.c')
-rw-r--r--soltools/mkdepend/ifparser.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/soltools/mkdepend/ifparser.c b/soltools/mkdepend/ifparser.c
index d342aa0e6365..39d36426279b 100644
--- a/soltools/mkdepend/ifparser.c
+++ b/soltools/mkdepend/ifparser.c
@@ -157,7 +157,7 @@ parse_value (IfParser *g, const char *cp, int *valp)
case 'd':
if (strncmp (cp, "defined", 7) == 0 && !isalnum(cp[7])) {
int paren = 0;
- int len;
+ size_t len;
cp += 7;
SKIPSPACE (cp);
@@ -166,7 +166,7 @@ parse_value (IfParser *g, const char *cp, int *valp)
cp++;
}
DO (cp = parse_variable (g, cp, &var));
- len = (int)(cp - var);
+ len = (size_t)(cp - var);
SKIPSPACE (cp);
if (paren && *cp != ')')
return CALLFUNC(g, handle_error) (g, cp, ")");
@@ -182,7 +182,7 @@ parse_value (IfParser *g, const char *cp, int *valp)
return CALLFUNC(g, handle_error) (g, cp, "variable or number");
else {
DO (cp = parse_variable (g, cp, &var));
- *valp = (*(g->funcs.eval_variable)) (g, var, cp - var);
+ *valp = (*(g->funcs.eval_variable)) (g, var, (size_t)(cp - var));
}
return cp;