mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2024-12-27 11:21:02 +08: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;
|
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; }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user