diff --git a/src/lib_json/json_value.cpp b/src/lib_json/json_value.cpp index b6ea8ff..b73deac 100644 --- a/src/lib_json/json_value.cpp +++ b/src/lib_json/json_value.cpp @@ -175,7 +175,8 @@ Value::CZString::CZString(const CZString& other) ? duplicateStringValue(other.cstr_) : other.cstr_), index_(other.cstr_ - ? (other.index_ == noDuplication ? noDuplication : duplicate) + ? static_cast(other.index_ == noDuplication + ? noDuplication : duplicate) : other.index_) {} Value::CZString::~CZString() {