diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2015-03-12 18:58:59 +0100 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2015-03-12 18:58:59 +0100 |
commit | 8a6b38c9bea96c20637e83e23c0d45808dd464d9 (patch) | |
tree | c5a74c1aff501c501f089fc6642b060b56775eba /src | |
parent | e7268b8f841b334ea86f7432c0c1c62683b7d112 (diff) |
Remove a const from a variable that should be mutable.
deadline is passed by address to PyArg_ParseTuple to update its value.
However, deadline is a const double, so attempting to change its value
is undefined behavior. Remove the const to have well-defined behavior.
Diffstat (limited to 'src')
-rw-r--r-- | src/python/src/grpc/_adapter/_call.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/src/grpc/_adapter/_call.c b/src/python/src/grpc/_adapter/_call.c index dca2e49373..d8806e5680 100644 --- a/src/python/src/grpc/_adapter/_call.c +++ b/src/python/src/grpc/_adapter/_call.c @@ -45,7 +45,7 @@ static int pygrpc_call_init(Call *self, PyObject *args, PyObject *kwds) { const PyObject *channel; const char *method; const char *host; - const double deadline; + double deadline; static char *kwlist[] = {"channel", "method", "host", "deadline", NULL}; if (!PyArg_ParseTupleAndKeywords(args, kwds, "O!ssd:Call", kwlist, |