diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-04-02 18:16:57 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-04-02 18:19:07 +0300 |
commit | cf704d65e005b08697c7a6f454acff01bd4ef6c3 (patch) | |
tree | 8ad91613ea6d7c83bebd080bf5a7f0eb71d32b33 | |
parent | 6fa98a08f2f4b57b660fc39542a9ceb20779d769 (diff) |
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
-rw-r--r-- | external/boost/boost.jsonparser.warnings.patch.0 | 2 |
1 files changed, 1 insertions, 1 deletions
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<typename std::basic_string<Ch>::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'); |