8000 Fix typo in Object/listobject.c (GH-21079) · python/cpython@5b96370 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5b96370

Browse files
authored
Fix typo in Object/listobject.c (GH-21079)
1 parent b30ee26 commit 5b96370

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Misc/NEWS.d/3.9.0a5.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ convention. Patch by Dong-hee Na.
176176
.. section: Core and Builtins
177177
178178
Chaged list overallocation strategy. It no longer overallocates if the new
179-
size is closer to overalocated size than to the old size and adds padding.
179+
size is closer to overallocated size than to the old size and adds padding.
180180

181181
..
182182

Objects/listobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ list_resize(PyListObject *self, Py_ssize_t newsize)
6969
* is PY_SSIZE_T_MAX * (9 / 8) + 6 which always fits in a size_t.
7070
*/
7171
new_allocated = ((size_t)newsize + (newsize >> 3) + 6) & ~(size_t)3;
72-
/* Do not overallocate if the new size is closer to overalocated size
72+
/* Do not overallocate if the new size is closer to overallocated size
7373
* than to the old size.
7474
*/
7575
if (newsize - Py_SIZE(self) > (Py_ssize_t)(new_allocated - newsize))

0 commit comments

Comments
 (0)
0