Fix constness issue detected by MSVC standard conforming mode (#8568)

This is the continuation of #8344
pull/8578/head
Yuriy Chernyshov 4 years ago committed by GitHub
parent 414aca5f13
commit c8389f8ed5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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<BuildFileErrorCollector*>(self);
if (error_collector && !error_collector->error_message.empty()) {

Loading…
Cancel
Save