Skip to content

Commit 84fd610

Browse files
authored
Fix load_binary function for clang++ compiler (#4951)
Looks like `p (bool) [int]` (https://docs.python.org/3.13/library/functions.html#bool) was misinterpreted. There was no need to use the bool type directly. It also looks like it's a UB bug, as it worked for GCC but not for clang. Signed-off-by: Anatoly Myachev <[email protected]>
1 parent 6db18fb commit 84fd610

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

third_party/intel/backend/driver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ extern "C" EXPORT_FUNC PyObject *load_binary(PyObject *args) {
188188
const char *name, *build_flags_ptr;
189189
int shared;
190190
PyObject *py_bytes;
191-
bool is_spv;
191+
int is_spv;
192192
int devId;
193193

194194
if (!PyArg_ParseTuple(args, "sSispi", &name, &py_bytes, &shared,

0 commit comments

Comments
 (0)