mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2024-12-13 10:22:55 +01:00
Cast to unsigned char in Value::setType() to appease gcc (issue #888)
This commit is contained in:
parent
863aa36165
commit
99a99d4032
@ -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<unsigned char> (v); }
|
||||
bool isAllocated() const { return bits_.allocated_; }
|
||||
void setIsAllocated(bool v) { bits_.allocated_ = v; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user