From 9d9595d612409fb63235d754dd1c6ec4546b52ae Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Thu, 25 Jul 2013 14:30:02 -0400 Subject: [PATCH] regex: warning cleanup as per gcc 3.4.6 on i686 --- stapregex-parse.cxx | 2 +- stapregex-tree.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stapregex-parse.cxx b/stapregex-parse.cxx index 451486eba..d1eddc9a2 100644 --- a/stapregex-parse.cxx +++ b/stapregex-parse.cxx @@ -145,7 +145,7 @@ void print_escaped(std::ostream& o, char c) // ------------------------------------------------------------------------ -cursor::cursor() : input(NULL), pos(-1) {} +cursor::cursor() : input(NULL), pos(~0) {} cursor::cursor(const std::string *input, bool do_unescape) : input(input), do_unescape(do_unescape), pos(0) diff --git a/stapregex-tree.cxx b/stapregex-tree.cxx index ec823bb56..16ed97925 100644 --- a/stapregex-tree.cxx +++ b/stapregex-tree.cxx @@ -165,7 +165,7 @@ range_invert(range *old_ran) ran.segments.pop_front(); } - if (start < NUM_REAL_CHARS) + if ((unsigned)start < (unsigned)NUM_REAL_CHARS) new_ran->segments.push_back(make_pair(start, NUM_REAL_CHARS-1)); return new_ran; -- 2.43.5