aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/python/grpcio/grpc/_cython/_cygrpc/records.pyx.pxi
diff options
context:
space:
mode:
authorGravatar Ken Payson <kpayson@google.com>2017-09-19 11:12:55 -0700
committerGravatar Ken Payson <kpayson@google.com>2017-09-19 12:24:40 -0700
commit2746bd59982a5c186cf12d2007c73bd9fc4c3e33 (patch)
tree5bc68a3e99d11b6b8b5c772c4707e35ade463731 /src/python/grpcio/grpc/_cython/_cygrpc/records.pyx.pxi
parent0aedb8136fe935e0361c8bfa5ef8b46b4d191605 (diff)
Fix cython definition to match c definition
This is required to compile with Cython options that are more strict about const correctness.
Diffstat (limited to 'src/python/grpcio/grpc/_cython/_cygrpc/records.pyx.pxi')
-rw-r--r--src/python/grpcio/grpc/_cython/_cygrpc/records.pyx.pxi2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/grpcio/grpc/_cython/_cygrpc/records.pyx.pxi b/src/python/grpcio/grpc/_cython/_cygrpc/records.pyx.pxi
index 0a2a6eee05..d860173b5d 100644
--- a/src/python/grpcio/grpc/_cython/_cygrpc/records.pyx.pxi
+++ b/src/python/grpcio/grpc/_cython/_cygrpc/records.pyx.pxi
@@ -782,7 +782,7 @@ cdef class CompressionOptions:
def compression_algorithm_name(grpc_compression_algorithm algorithm):
- cdef char* name
+ cdef const char* name
with nogil:
grpc_compression_algorithm_name(algorithm, &name)
# Let Cython do the right thing with string casting