mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
_PyMalloc_Realloc(): removed a now-pointless cast.
This commit is contained in:
parent
84c1b97467
commit
b7265dbe3e
1 changed files with 1 additions and 1 deletions
|
|
@ -812,7 +812,7 @@ _PyMalloc_Realloc(void *p, size_t nbytes)
|
|||
return p;
|
||||
/* We need more memory. */
|
||||
assert(nbytes != 0);
|
||||
bp = (block *)_PyMalloc_Malloc(nbytes);
|
||||
bp = _PyMalloc_Malloc(nbytes);
|
||||
if (bp != NULL) {
|
||||
memcpy(bp, p, size);
|
||||
_PyMalloc_Free(p);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue