Commit a69472e
[3.14] pythongh-134411: assert
pythongh-134411: assert `PyLong_FromLong(x) != NULL` when `x` is known to be small (pythonGH-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.
python#134411 (comment)
(cherry picked from commit cf19b64)
Co-authored-by: Sergey Muraviov <[email protected]>PyLong_FromLong(x) != NULL when x is known to be small (pythonGH-134415) (python#136910)1 parent 163f532 commit a69472e
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2558 | 2558 | | |
2559 | 2559 | | |
2560 | 2560 | | |
| 2561 | + | |
2561 | 2562 | | |
2562 | 2563 | | |
2563 | 2564 | | |
2564 | 2565 | | |
| 2566 | + | |
2565 | 2567 | | |
2566 | 2568 | | |
2567 | 2569 | | |
2568 | 2570 | | |
| 2571 | + | |
2569 | 2572 | | |
2570 | 2573 | | |
2571 | 2574 | | |
2572 | 2575 | | |
| 2576 | + | |
2573 | 2577 | | |
2574 | 2578 | | |
2575 | 2579 | | |
| |||
0 commit comments