mirror of
https://github.com/NixOS/nix
synced 2025-07-06 13:21:47 +02:00
* 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.
This commit is contained in:
parent
0460ea4c39
commit
4e646b0ddb
3 changed files with 5 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue