Keep constness of pointer arguments
This commit is contained in:
parent
71a3522ef8
commit
ef6afd241e
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue