Skip to content

Commit

Permalink
Fix constness issue detected by MSVC standard conforming mode
Browse files Browse the repository at this point in the history
This is the continuation of protocolbuffers#8344
  • Loading branch information
georgthegreat authored May 5, 2021
1 parent 5df4c2e commit 4b595e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/google/protobuf/pyext/descriptor_pool.cc
Original file line number Diff line number Diff line change
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 4b595e6

Please sign in to comment.