Another shot at #411

This commit is contained in:
Christopher Dunn 2016-03-14 18:32:34 -05:00
parent c80faa400c
commit 5da29e2707

View File

@ -234,7 +234,7 @@ Value::CZString::CZString(const CZString& other)
storage_.policy_ = static_cast<unsigned>(other.cstr_
? (static_cast<DuplicationPolicy>(other.storage_.policy_) == noDuplication
? noDuplication : duplicate)
: static_cast<DuplicationPolicy>(other.storage_.policy_));
: static_cast<DuplicationPolicy>(other.storage_.policy_)) & 3U;
storage_.length_ = other.storage_.length_;
}