From cf704d65e005b08697c7a6f454acff01bd4ef6c3 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 2 Apr 2014 18:16:57 +0300 Subject: WaE: comparison of constant 255 with expression of type 'const char' Better fix for warning: "comparison of constant 255 with expression of type 'const char' is always true". I hadn't considered that the code is in a template, so it must handle strings of arbitrary integer types (well, Unicode). Change-Id: I38d6d480bfc3ff89db1276cac38d310ecdcc2cfa --- external/boost/boost.jsonparser.warnings.patch.0 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'external') diff --git a/external/boost/boost.jsonparser.warnings.patch.0 b/external/boost/boost.jsonparser.warnings.patch.0 index b3d9bbf9ac02..0cda6ea43e68 100644 --- a/external/boost/boost.jsonparser.warnings.patch.0 +++ b/external/boost/boost.jsonparser.warnings.patch.0 @@ -63,7 +63,7 @@ // handle high unicode characters. if (*b == 0x20 || *b == 0x21 || (*b >= 0x23 && *b <= 0x2E) || - (*b >= 0x30 && *b <= 0x5B) || (*b >= 0x5D && *b <= 0xFF)) -+ (*b >= 0x30 && *b <= 0x5B) || (*b >= 0x5D)) ++ (*b >= 0x30 && *b <= 0x5B) || (*b >= 0x5D && static_cast::traits_type::int_type>(*b) <= 0xFF)) result += *b; else if (*b == Ch('\b')) result += Ch('\\'), result += Ch('b'); else if (*b == Ch('\f')) result += Ch('\\'), result += Ch('f'); -- cgit