From 5fdd564d503d997ba0fe3f49c4a1d510468a0864 Mon Sep 17 00:00:00 2001
From: Tor Lillqvist <tml@iki.fi>
Date: Mon, 14 Apr 2014 12:19:21 +0200
Subject: [PATCH 2/2] property_tree: fix Clang
-Wtautological-constant-out-of-range-compare
Signed-off-by: Michael Stahl <mstahl@redhat.com>
---
include/boost/property_tree/detail/json_parser_write.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/boost/property_tree/detail/json_parser_write.hpp b/include/boost/property_tree/detail/json_parser_write.hpp
index b52c8ea..93e498e 100644
a
|
b
|
namespace boost { namespace property_tree { namespace json_parser
|
33 | 33 | // We escape everything outside ASCII, because this code can't |
34 | 34 | // handle high unicode characters. |
35 | 35 | if (*b == 0x20 || *b == 0x21 || (*b >= 0x23 && *b <= 0x2E) || |
36 | | (*b >= 0x30 && *b <= 0x5B) || (*b >= 0x5D && *b <= 0xFF)) |
| 36 | (*b >= 0x30 && *b <= 0x5B) || (*b >= 0x5D && static_cast<typename std::basic_string<Ch>::traits_type::int_type>(*b) <= 0xFF)) |
37 | 37 | result += *b; |
38 | 38 | else if (*b == Ch('\b')) result += Ch('\\'), result += Ch('b'); |
39 | 39 | else if (*b == Ch('\f')) result += Ch('\\'), result += Ch('f'); |