From: Tim Peters Date: Thu, 4 Apr 2002 05:08:31 +0000 (+0000) Subject: _PyMalloc_Realloc(): removed a now-pointless cast. X-Git-Tag: v2.3c1~6146 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b7265dbe3ee954b5ebca795adc6b90b609a0bb23;p=python _PyMalloc_Realloc(): removed a now-pointless cast. --- diff --git a/Objects/obmalloc.c b/Objects/obmalloc.c index 93c74ab163..ec9141cedc 100644 --- a/Objects/obmalloc.c +++ b/Objects/obmalloc.c @@ -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);