summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2021-06-12 13:11:59 (GMT)
committerGitHub <noreply@github.com>2021-06-12 13:11:59 (GMT)
commitbe8b631b7a587aa781245e14c8cca32970e1be5b (patch)
treee754599e2e72d6e327667f1b8788f2d34d6fda36 /Python
parent9f1c5f6e8af6ba3f659b2aea1e221ac9695828ba (diff)
downloadcpython-be8b631b7a587aa781245e14c8cca32970e1be5b.zip
cpython-be8b631b7a587aa781245e14c8cca32970e1be5b.tar.gz
cpython-be8b631b7a587aa781245e14c8cca32970e1be5b.tar.bz2
Add more const modifiers. (GH-26691)
Diffstat (limited to 'Python')
-rw-r--r--Python/specialize.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/specialize.c b/Python/specialize.c
index 1801e66..d82122d 100644
--- a/Python/specialize.c
+++ b/Python/specialize.c
@@ -120,7 +120,7 @@ oparg_from_instruction_and_update_offset(int index, int opcode, int original_opa
}
static int
-entries_needed(_Py_CODEUNIT *code, int len)
+entries_needed(const _Py_CODEUNIT *code, int len)
{
int cache_offset = 0;
int previous_opcode = -1;