aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2009-04-16 12:03:17 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2009-04-16 12:03:17 +0000
commit4e646b0ddb81e1fbf1159ad66a41de848fe93930 (patch)
tree1c7295c046c121069d2161f8dadba3672a5d54d6 /src/libexpr
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/libexpr')
-rw-r--r--src/libexpr/parser.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/parser.y b/src/libexpr/parser.y
index 7bafd89d8..05ba52e68 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);
}