From 658891896ad683ba3bc06aa220b95799a1875a7f Mon Sep 17 00:00:00 2001 From: Jeong Ukjae Date: Tue, 23 Jun 2020 22:32:57 +0900 Subject: [PATCH] Fix typo in Object/listobject.c --- Misc/NEWS.d/3.9.0a5.rst | 2 +- Objects/listobject.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Misc/NEWS.d/3.9.0a5.rst b/Misc/NEWS.d/3.9.0a5.rst index 01cbd4423426ed..39e017768c3ad0 100644 --- a/Misc/NEWS.d/3.9.0a5.rst +++ b/Misc/NEWS.d/3.9.0a5.rst @@ -176,7 +176,7 @@ convention. Patch by Dong-hee Na. .. section: Core and Builtins Chaged list overallocation strategy. It no longer overallocates if the new -size is closer to overalocated size than to the old size and adds padding. +size is closer to overallocated size than to the old size and adds padding. .. diff --git a/Objects/listobject.c b/Objects/listobject.c index 261a0fdfffae0d..a62bd2a28f4a08 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c @@ -60,7 +60,7 @@ list_resize(PyListObject *self, Py_ssize_t newsize) * is PY_SSIZE_T_MAX * (9 / 8) + 6 which always fits in a size_t. */ new_allocated = ((size_t)newsize + (newsize >> 3) + 6) & ~(size_t)3; - /* Do not overallocate if the new size is closer to overalocated size + /* Do not overallocate if the new size is closer to overallocated size * than to the old size. */ if (newsize - Py_SIZE(self) > (Py_ssize_t)(new_allocated - newsize))