Skip to content

Commit

Permalink
Fix constness issue detected by MSVC standard conforming mode (#8568)
Browse files Browse the repository at this point in the history
This is the continuation of #8344
  • Loading branch information
georgthegreat committed May 6, 2021
1 parent 414aca5 commit c8389f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/google/protobuf/pyext/descriptor_pool.cc
Expand Up @@ -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()) {
Expand Down

0 comments on commit c8389f8

Please sign in to comment.