Commit 8aa88c0
Fix missing PyErr_Occurred checks in call_function_accel
Add PyErr_Occurred() checks after PyLong_AsLong calls for colspec type
and return type parsing in call_function_accel. Without these checks,
a non-integer value would cause PyLong_AsLong to return -1 and set the
error indicator, but the code would silently continue with -1 as the
type code. This matches the existing pattern used in the other accel
functions (call_function_rowdat_1, call_function_rowdat_1_to_pylist).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 2753f6e commit 8aa88c0
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4855 | 4855 | | |
4856 | 4856 | | |
4857 | 4857 | | |
| 4858 | + | |
4858 | 4859 | | |
4859 | 4860 | | |
4860 | 4861 | | |
| |||
4870 | 4871 | | |
4871 | 4872 | | |
4872 | 4873 | | |
| 4874 | + | |
4873 | 4875 | | |
4874 | 4876 | | |
4875 | 4877 | | |
| |||
0 commit comments