Cast to unsigned char in Value::setType() to appease gcc (issue #888)

This commit is contained in:
Frank Richter 2019-03-23 15:04:30 +01:00
parent 863aa36165
commit 99a99d4032

View File

@ -610,7 +610,7 @@ Json::Value obj_value(Json::objectValue); // {}
ptrdiff_t getOffsetLimit() const; ptrdiff_t getOffsetLimit() const;
private: private:
void setType(ValueType v) { bits_.value_type_ = v; } void setType(ValueType v) { bits_.value_type_ = static_cast<unsigned char> (v); }
bool isAllocated() const { return bits_.allocated_; } bool isAllocated() const { return bits_.allocated_; }
void setIsAllocated(bool v) { bits_.allocated_ = v; } void setIsAllocated(bool v) { bits_.allocated_ = v; }