summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-09-28 14:44:39 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-09-28 14:44:39 (GMT)
commitc0574fd06731045d6c0a3a0f092216f7d2836ef1 (patch)
tree6cd88ecc2da0fa08b76afbab39b8209ce41bc6ad
parent4480a9262da520730e48dc1b749245a84591fd8c (diff)
parenta7fe4413d5d2e156c8b9f126e713f0a1085ad1f7 (diff)
downloadCMake-c0574fd06731045d6c0a3a0f092216f7d2836ef1.zip
CMake-c0574fd06731045d6c0a3a0f092216f7d2836ef1.tar.gz
CMake-c0574fd06731045d6c0a3a0f092216f7d2836ef1.tar.bz2
Merge topic 'jsoncpp-add-missing-cast'
a7fe4413 jsoncpp: Add missing cast to convert from char to UInt
-rw-r--r--Utilities/cmjsoncpp/src/lib_json/json_reader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utilities/cmjsoncpp/src/lib_json/json_reader.cpp b/Utilities/cmjsoncpp/src/lib_json/json_reader.cpp
index 41896a7..7b33828 100644
--- a/Utilities/cmjsoncpp/src/lib_json/json_reader.cpp
+++ b/Utilities/cmjsoncpp/src/lib_json/json_reader.cpp
@@ -529,7 +529,7 @@ bool Reader::decodeNumber(Token& token, Value& decoded) {
return addError("'" + std::string(token.start_, token.end_) +
"' is not a number.",
token);
- Value::UInt digit(c - '0');
+ Value::UInt digit(static_cast<Value::UInt>(c - '0'));
if (value >= threshold) {
// We've hit or exceeded the max value divided by 10 (rounded down). If
// a) we've only just touched the limit, b) this is the last digit, and