From 0978c495da920c12934324c3c662fa94daf95475 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 2 Apr 2014 17:30:11 +0300 Subject: WaE: comparison of constant 255 with expression of type 'const char' Change-Id: Ibe07fc9a61ae8432e92c43ac6ff07c4dc9e6c771 --- external/boost/boost.jsonparser.warnings.patch.0 | 11 +++++++++++ 1 file changed, 11 insertions(+) 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'); -- cgit