Skip to content

Commit

Permalink
fix gcc warning when CXXFLAGS contains '-Wextra'
Browse files Browse the repository at this point in the history
json_value.cpp:179:26: warning: enumeral and non-enumeral type in conditional expression [enabled by default]

open-source-parsers#84
  • Loading branch information
xiaoyur347 authored and cdunn2001 committed Nov 20, 2014
1 parent e5de78d commit 83683da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib_json/json_value.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 83683da

Please sign in to comment.