From 92077b4547b473bb4ea7b38077299e8fba75ca62 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 2 Sep 2013 16:39:17 +0200 Subject: Get rid of a signedness warning --- src/libexpr/attr-path.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libexpr') 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. */ -- cgit 1.4.1