From c8389f8ed50b6eff91d52a2385601eab2e7c64fd Mon Sep 17 00:00:00 2001 From: Yuriy Chernyshov Date: Thu, 6 May 2021 21:09:22 +0500 Subject: [PATCH] Fix constness issue detected by MSVC standard conforming mode (#8568) This is the continuation of #8344 --- python/google/protobuf/pyext/descriptor_pool.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/google/protobuf/pyext/descriptor_pool.cc b/python/google/protobuf/pyext/descriptor_pool.cc index d330e0d6f4d7..b607956de451 100644 --- a/python/google/protobuf/pyext/descriptor_pool.cc +++ b/python/google/protobuf/pyext/descriptor_pool.cc @@ -219,7 +219,7 @@ static int GcClear(PyObject* pself) { } PyObject* SetErrorFromCollector(DescriptorPool::ErrorCollector* self, - char* name, char* error_type) { + const char* name, const char* error_type) { BuildFileErrorCollector* error_collector = reinterpret_cast(self); if (error_collector && !error_collector->error_message.empty()) {