diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2009-04-16 12:03:17 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2009-04-16 12:03:17 +0000 |
commit | 4e646b0ddb81e1fbf1159ad66a41de848fe93930 (patch) | |
tree | 1c7295c046c121069d2161f8dadba3672a5d54d6 /src/libstore | |
parent | 0460ea4c395cc45e510d13fbf12930dd3d221305 (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')
-rw-r--r-- | src/libstore/local-store.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc index 9f9c378c6..205ee3c25 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); |