diff options
author | Hai Shi <shihai1992@gmail.com> | 2020-04-09 15:10:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-09 15:10:29 (GMT) |
commit | dcb04d9c6dd6f31449ade6765fa4d26a305e7381 (patch) | |
tree | 6329109fe1290a605e42a65dea69088b7c62e58c /Modules | |
parent | 97e0de04b8cd44474e452a028761e34407192041 (diff) | |
download | cpython-dcb04d9c6dd6f31449ade6765fa4d26a305e7381.zip cpython-dcb04d9c6dd6f31449ade6765fa4d26a305e7381.tar.gz cpython-dcb04d9c6dd6f31449ade6765fa4d26a305e7381.tar.bz2 |
bpo-40077: Remove redundant cast in json module (GH-19438)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_json.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_json.c b/Modules/_json.c index 8117d16..3ab1cb3 100644 --- a/Modules/_json.c +++ b/Modules/_json.c @@ -1818,7 +1818,7 @@ _json_exec(PyObject *module) } Py_INCREF(state->PyScannerType); if (PyModule_AddObject(module, "make_scanner", state->PyScannerType) < 0) { - Py_DECREF((PyObject*)state->PyScannerType); + Py_DECREF(state->PyScannerType); return -1; } @@ -1828,7 +1828,7 @@ _json_exec(PyObject *module) } Py_INCREF(state->PyEncoderType); if (PyModule_AddObject(module, "make_encoder", state->PyEncoderType) < 0) { - Py_DECREF((PyObject*)state->PyEncoderType); + Py_DECREF(state->PyEncoderType); return -1; } |