@@ -1374,7 +1374,7 @@ gc_set_thresh(PyObject *self, PyObject *args)
|
1374 | 1374 | &_PyRuntime.gc.generations[1].threshold, |
1375 | 1375 | &_PyRuntime.gc.generations[2].threshold)) |
1376 | 1376 | return NULL; |
1377 | | -for (i = 2; i < NUM_GENERATIONS; i++) { |
| 1377 | +for (i = 3; i < NUM_GENERATIONS; i++) { |
1378 | 1378 | /* generations higher than 2 get the same threshold */ |
1379 | 1379 | _PyRuntime.gc.generations[i].threshold = _PyRuntime.gc.generations[2].threshold; |
1380 | 1380 | } |
@@ -1524,7 +1524,7 @@ gc_get_objects_impl(PyObject *module, Py_ssize_t generation)
|
1524 | 1524 | } |
1525 | 1525 | |
1526 | 1526 | /* If generation is passed, we extract only that generation */ |
1527 | | -if (generation != -1) { |
| 1527 | +if (generation != -1) { |
1528 | 1528 | if (generation >= NUM_GENERATIONS) { |
1529 | 1529 | PyErr_Format(PyExc_ValueError, |
1530 | 1530 | "generation parameter must be less than the number of " |
|