about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-09-02T14·39+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-09-02T14·39+0200
commit92077b4547b473bb4ea7b38077299e8fba75ca62 (patch)
tree0160d7c6879ece2c62fb7ca3353714120c9b2112 /src
parent33972629d76b1b1059de5b89ce68ef37dce45cbd (diff)
Get rid of a signedness warning
Diffstat (limited to 'src')
-rw-r--r--src/libexpr/attr-path.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/attr-path.cc b/src/libexpr/attr-path.cc
index 2b72fea7eb8e..109001e6015d 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. */