Get rid of a signedness warning

This commit is contained in:
Eelco Dolstra 2013-09-02 16:39:17 +02:00
parent 33972629d7
commit 92077b4547
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ void findAlongAttrPath(EvalState & state, const string & attrPath,
/* Is *i an index (integer) or a normal attribute name? */
enum { apAttr, apIndex } apType = apAttr;
string attr = *i;
int attrIndex = -1;
unsigned int attrIndex;
if (string2Int(attr, attrIndex)) apType = apIndex;
/* Evaluate the expression. */