From 99a99d4032ca1607ad0b9b985b49935bef3713f0 Mon Sep 17 00:00:00 2001 From: Frank Richter Date: Sat, 23 Mar 2019 15:04:30 +0100 Subject: [PATCH] Cast to unsigned char in Value::setType() to appease gcc (issue #888) --- include/json/value.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/json/value.h b/include/json/value.h index 69a0ed2ab..2e94b37c7 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; }