Get rid of a signedness warning
This commit is contained in:
parent
33972629d7
commit
92077b4547
|
@ -27,7 +27,7 @@ void findAlongAttrPath(EvalState & state, const string & attrPath,
|
||||||
/* Is *i an index (integer) or a normal attribute name? */
|
/* Is *i an index (integer) or a normal attribute name? */
|
||||||
enum { apAttr, apIndex } apType = apAttr;
|
enum { apAttr, apIndex } apType = apAttr;
|
||||||
string attr = *i;
|
string attr = *i;
|
||||||
int attrIndex = -1;
|
unsigned int attrIndex;
|
||||||
if (string2Int(attr, attrIndex)) apType = apIndex;
|
if (string2Int(attr, attrIndex)) apType = apIndex;
|
||||||
|
|
||||||
/* Evaluate the expression. */
|
/* Evaluate the expression. */
|
||||||
|
|
Loading…
Reference in a new issue