diff --git a/include/json/value.h b/include/json/value.h index 69a0ed2..2e94b37 100644 --- a/include/json/value.h +++ b/include/json/value.h @@ -610,7 +610,7 @@ Json::Value obj_value(Json::objectValue); // {} ptrdiff_t getOffsetLimit() const; private: - void setType(ValueType v) { bits_.value_type_ = v; } + void setType(ValueType v) { bits_.value_type_ = static_cast (v); } bool isAllocated() const { return bits_.allocated_; } void setIsAllocated(bool v) { bits_.allocated_ = v; }