From 8f87eefe7f0576c05c488874eb9601a7a87c7312 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 12 Apr 2020 14:58:27 +0300 Subject: bpo-39943: Add the const qualifier to pointers on non-mutable PyBytes data. (GH-19472) --- Objects/longobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Objects/longobject.c') diff --git a/Objects/longobject.c b/Objects/longobject.c index 5d225cbd2f..a66e1c4924 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -5071,7 +5071,7 @@ long_new_impl(PyTypeObject *type, PyObject *x, PyObject *obase) if (PyUnicode_Check(x)) return PyLong_FromUnicodeObject(x, (int)base); else if (PyByteArray_Check(x) || PyBytes_Check(x)) { - char *string; + const char *string; if (PyByteArray_Check(x)) string = PyByteArray_AS_STRING(x); else -- cgit v1.2.1