Skip to content

Commit

Permalink
PyUnicode_AsWideChar takes a 'PyObject *' argument
Browse files Browse the repository at this point in the history
  • Loading branch information
arigo authored Jun 26, 2024
1 parent 772528e commit 3af3a69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/c/_cffi_backend.c
Original file line number Diff line number Diff line change
Expand Up @@ -4565,7 +4565,7 @@ static void *b_do_dlopen(PyObject *args, const char **p_printable_filename,
sz1 = PyText_GetSize(filename_unicode) + 1;
sz1 *= 2; /* should not be needed, but you never know */
w1 = alloca(sizeof(wchar_t) * sz1);
sz1 = PyUnicode_AsWideChar((PyUnicodeObject *)filename_unicode,
sz1 = PyUnicode_AsWideChar(filename_unicode,
w1, sz1 - 1);
if (sz1 < 0)
return NULL;
Expand Down

0 comments on commit 3af3a69

Please sign in to comment.