mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2024-12-12 18:10:27 +01:00
fix gcc warning when CXXFLAGS contains '-Wextra'
json_value.cpp:179:26: warning: enumeral and non-enumeral type in conditional expression [enabled by default] https://github.com/open-source-parsers/jsoncpp/pull/84
This commit is contained in:
parent
e5de78db82
commit
83683da13f
@ -175,7 +175,8 @@ Value::CZString::CZString(const CZString& other)
|
||||
? duplicateStringValue(other.cstr_)
|
||||
: other.cstr_),
|
||||
index_(other.cstr_
|
||||
? (other.index_ == noDuplication ? noDuplication : duplicate)
|
||||
? static_cast<ArrayIndex>(other.index_ == noDuplication
|
||||
? noDuplication : duplicate)
|
||||
: other.index_) {}
|
||||
|
||||
Value::CZString::~CZString() {
|
||||
|
Loading…
Reference in New Issue
Block a user