瀏覽代碼

Fix for compiler warning issue#8145

Corrected the == check condition.

Signed-off-by: Abhishek Jain <abhishek.jain3@huawei.com>
Abhishek Jain 4 年之前
父節點
當前提交
36aff6a526
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/google/protobuf/compiler/cpp/cpp_message.cc

+ 1 - 1
src/google/protobuf/compiler/cpp/cpp_message.cc

@@ -1070,7 +1070,7 @@ void MessageGenerator::GenerateClassDefinition(io::Printer* printer) {
             " }\n",
             descriptor_->field(1)->full_name());
       } else {
-        GOOGLE_CHECK(utf8_check = VERIFY);
+        GOOGLE_CHECK(utf8_check == VERIFY);
         format(
             "  static bool ValidateValue(std::string* s) {\n"
             "#ifndef NDEBUG\n"