Commit c0574fd0 authored by Brad King's avatar Brad King Committed by Kitware Robot

Merge topic 'jsoncpp-add-missing-cast'

a7fe4413 jsoncpp: Add missing cast to convert from char to UInt
parents 4480a926 a7fe4413
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment