From 6cc5cf41d5c4aadd0601e017a7b392bd9b62ca06 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Fri, 16 Nov 2001 12:24:01 +0000 Subject: [PATCH] Trivial fix for signed/unsigned comparison [SVN r11715] --- include/boost/regex/regex_traits.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/regex/regex_traits.hpp b/include/boost/regex/regex_traits.hpp index 30683ef9..b9a508d8 100644 --- a/include/boost/regex/regex_traits.hpp +++ b/include/boost/regex/regex_traits.hpp @@ -733,7 +733,7 @@ public: return true; if((f & char_class_blank) && ((c == ' ') || (c == '\t'))) return true; - if((f & char_class_unicode) && (c > (size_type)(uchar_type)255)) + if((f & char_class_unicode) && ((uchar_type)c > (uchar_type)255)) return true; return false; }