Skip to content

Commit 5da29e2

Browse files
committed
Another shot at #411
1 parent c80faa4 commit 5da29e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/lib_json/json_value.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ Value::CZString::CZString(const CZString& other)
234234
storage_.policy_ = static_cast<unsigned>(other.cstr_
235235
? (static_cast<DuplicationPolicy>(other.storage_.policy_) == noDuplication
236236
? noDuplication : duplicate)
237-
: static_cast<DuplicationPolicy>(other.storage_.policy_));
237+
: static_cast<DuplicationPolicy>(other.storage_.policy_)) & 3U;
238238
storage_.length_ = other.storage_.length_;
239239
}
240240

0 commit comments

Comments
 (0)