summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/annotate.cc2
-rw-r--r--src/token.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/annotate.cc b/src/annotate.cc
index 093837fe..8ba46f4f 100644
--- a/src/annotate.cc
+++ b/src/annotate.cc
@@ -42,7 +42,7 @@ void annotation_t::parse(std::istream& in)
{
do {
istream_pos_type pos = in.tellg();
- if (pos == -1)
+ if (static_cast<int>(pos) < 0)
return;
char buf[256];
diff --git a/src/token.cc b/src/token.cc
index 7bfaf162..735f5825 100644
--- a/src/token.cc
+++ b/src/token.cc
@@ -402,7 +402,7 @@ void expr_t::token_t::next(std::istream& in, const parse_flags_t& pflags,
assert(in.good());
assert(! in.eof());
- assert(in.tellg() != -1);
+ assert(static_cast<int>(in.tellg()) != -1);
// When in relaxed parsing mode, we want to migrate commodity flags
// so that any precision specified by the user updates the current