8000 obmalloc: Remove unused variable. (GH-98770) · python/cpython@cfbc01f · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cfbc01f

Browse files
obmalloc: Remove unused variable. (GH-98770)
(cherry picked from commit bded5ed) Co-authored-by: Benjamin Peterson <benjamin@python.org>
1 parent 8e475ad commit cfbc01f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Objects/obmalloc.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2999,7 +2999,6 @@ _PyObject_DebugMallocStats(FILE *out)
29992999
* will be living in full pools -- would be a shame to miss them.
30003000
*/
30013001
for (i = 0; i < maxarenas; ++i) {
3002-
uint j;
30033002
uintptr_t base = arenas[i].address;
30043003

30053004
/* Skip arenas which are not allocated. */
@@ -3018,8 +3017,7 @@ _PyObject_DebugMallocStats(FILE *out)
30183017

30193018
/* visit every pool in the arena */
30203019
assert(base <= (uintptr_t) arenas[i].pool_address);
3021-
for (j = 0; base < (uintptr_t) arenas[i].pool_address;
3022-
++j, base += POOL_SIZE) {
3020+
for (; base < (uintptr_t) arenas[i].pool_address; base += POOL_SIZE) {
30233021
poolp p = (poolp)base;
30243022
const uint sz = p->szidx;
30253023
uint freeblocks;

0 commit comments

Comments
 (0)
0