diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-04-02 17:30:11 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-04-02 17:35:44 +0300 |
commit | 0978c495da920c12934324c3c662fa94daf95475 (patch) | |
tree | 112665c6d2433a98be497f1b59044f5d4804fdf6 /external | |
parent | f5b9db43080658201caf07cd646bae4f4f2acc95 (diff) |
WaE: comparison of constant 255 with expression of type 'const char'
Change-Id: Ibe07fc9a61ae8432e92c43ac6ff07c4dc9e6c771
Diffstat (limited to 'external')
-rw-r--r-- | external/boost/boost.jsonparser.warnings.patch.0 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/external/boost/boost.jsonparser.warnings.patch.0 b/external/boost/boost.jsonparser.warnings.patch.0 index 4a71b3b834bc..b3d9bbf9ac02 100644 --- a/external/boost/boost.jsonparser.warnings.patch.0 +++ b/external/boost/boost.jsonparser.warnings.patch.0 @@ -56,3 +56,14 @@ m_tr(tr), m_start(m_value.begin()) {} +--- boost/property_tree/detail/json_parser_write.hpp ++++ boost/property_tree/detail/json_parser_write.hpp +@@ -33,7 +33,7 @@ + // We escape everything outside ASCII, because this code can't + // 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)) + result += *b; + else if (*b == Ch('\b')) result += Ch('\\'), result += Ch('b'); + else if (*b == Ch('\f')) result += Ch('\\'), result += Ch('f'); |