Keep constness of pointer arguments

This commit is contained in:
Andy Lester 2020-03-26 19:45:12 -05:00
parent 71a3522ef8
commit ef6afd241e
1 changed files with 2 additions and 2 deletions

View File

@ -364,7 +364,7 @@ _PyMem_SetupAllocators(PyMemAllocatorName allocator)
static int
pymemallocator_eq(PyMemAllocatorEx *a, PyMemAllocatorEx *b)
pymemallocator_eq(const PyMemAllocatorEx *a, const PyMemAllocatorEx *b)
{
return (memcmp(a, b, sizeof(PyMemAllocatorEx)) == 0);
}
@ -2452,7 +2452,7 @@ _PyObject_DebugDumpAddress(const void *p)
}
tail = q + nbytes;
fprintf(stderr, " The %d pad bytes at tail=%p are ", SST, (void *)tail);
fprintf(stderr, " The %d pad bytes at tail=%p are ", SST, (const void *)tail);
ok = 1;
for (i = 0; i < SST; ++i) {
if (tail[i] != PYMEM_FORBIDDENBYTE) {