about summary refs log tree commit diff
path: root/src/libstore/local-store.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2009-04-16T12·03+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2009-04-16T12·03+0000
commit4e646b0ddb81e1fbf1159ad66a41de848fe93930 (patch)
tree1c7295c046c121069d2161f8dadba3672a5d54d6 /src/libstore/local-store.cc
parent0460ea4c395cc45e510d13fbf12930dd3d221305 (diff)
* Fix a few "comparison is always false/true due to limited range of
  data type" warnings on 64-bit platforms.  The one in parser.y is
  likely to be a real bug.

Diffstat (limited to 'src/libstore/local-store.cc')
-rw-r--r--src/libstore/local-store.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc
index 9f9c378c6a75..205ee3c25dc9 100644
--- a/src/libstore/local-store.cc
+++ b/src/libstore/local-store.cc
@@ -393,7 +393,7 @@ ValidPathInfo LocalStore::queryPathInfo(const Path & path, bool ignoreErrors)
     Strings lines = tokenizeString(info, "\n");
 
     for (Strings::iterator i = lines.begin(); i != lines.end(); ++i) {
-        unsigned int p = i->find(':');
+        string::size_type p = i->find(':');
         if (p == string::npos) continue; /* bad line */
         string name(*i, 0, p);
         string value(*i, p + 2);