From 5da29e2707d7b40323a7ea186288d8dff0eedf81 Mon Sep 17 00:00:00 2001 From: Christopher Dunn Date: Mon, 14 Mar 2016 18:32:34 -0500 Subject: [PATCH] Another shot at #411 --- src/lib_json/json_value.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib_json/json_value.cpp b/src/lib_json/json_value.cpp index e6eb345..17a8455 100644 --- a/src/lib_json/json_value.cpp +++ b/src/lib_json/json_value.cpp @@ -234,7 +234,7 @@ Value::CZString::CZString(const CZString& other) storage_.policy_ = static_cast(other.cstr_ ? (static_cast(other.storage_.policy_) == noDuplication ? noDuplication : duplicate) - : static_cast(other.storage_.policy_)); + : static_cast(other.storage_.policy_)) & 3U; storage_.length_ = other.storage_.length_; }