diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-09-02 16:39:17 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-09-02 16:39:17 +0200 |
commit | 92077b4547b473bb4ea7b38077299e8fba75ca62 (patch) | |
tree | 0160d7c6879ece2c62fb7ca3353714120c9b2112 /src/libexpr/attr-path.cc | |
parent | 33972629d76b1b1059de5b89ce68ef37dce45cbd (diff) |
Get rid of a signedness warning
Diffstat (limited to 'src/libexpr/attr-path.cc')
-rw-r--r-- | src/libexpr/attr-path.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/attr-path.cc b/src/libexpr/attr-path.cc index 2b72fea7e..109001e60 100644 --- a/src/libexpr/attr-path.cc +++ b/src/libexpr/attr-path.cc @@ -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. */ |