Commit f2f30c4
gh-134411: assert `PyLong_FromLong(x) != NULL` when `x` is known to be small (GH-134415)
Since `PyLong_From Long(PY_MONITORING_DEBUGGER_ID)` falls to `small_int` case and can't return `NULL`. Added `assert`s for extra confidence.
#134411 (comment)
(cherry picked from commit cf19b64)
Co-authored-by: Sergey Muraviov <[email protected]>
1 parent 3ee46cc commit f2f30c4
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2448 | 2448 | | |
2449 | 2449 | | |
2450 | 2450 | | |
| 2451 | + | |
2451 | 2452 | | |
2452 | 2453 | | |
2453 | 2454 | | |
2454 | 2455 | | |
| 2456 | + | |
2455 | 2457 | | |
2456 | 2458 | | |
2457 | 2459 | | |
2458 | 2460 | | |
| 2461 | + | |
2459 | 2462 | | |
2460 | 2463 | | |
2461 | 2464 | | |
2462 | 2465 | | |
| 2466 | + | |
2463 | 2467 | | |
2464 | 2468 | | |
2465 | 2469 | | |
| |||
0 commit comments