From 4e646b0ddb81e1fbf1159ad66a41de848fe93930 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 16 Apr 2009 12:03:17 +0000 Subject: * 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. --- src/libexpr/parser.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libexpr/parser.y') diff --git a/src/libexpr/parser.y b/src/libexpr/parser.y index 7bafd89d88..05ba52e687 100644 --- a/src/libexpr/parser.y +++ b/src/libexpr/parser.y @@ -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); } -- cgit 1.4.1