1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 21:01:16 +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:
Eelco Dolstra 2009-04-16 12:03:17 +00:00
parent 0460ea4c39
commit 4e646b0ddb
3 changed files with 5 additions and 5 deletions

View file

@ -147,7 +147,7 @@ static Expr stripIndentation(ATermList es)
/* Remove the last line if it is empty and consists only of
spaces. */
if (n == 1) {
unsigned int p = s2.find_last_of('\n');
string::size_type p = s2.find_last_of('\n');
if (p != string::npos && s2.find_first_not_of(' ', p + 1) == string::npos)
s2 = string(s2, 0, p + 1);
}