Skip to content

Commit cfbc01f

Browse files
obmalloc: Remove unused variable. (GH-98770)
(cherry picked from commit bded5ed) Co-authored-by: Benjamin Peterson <[email protected]>
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)