There was an error while loading. Please reload this page.
1 parent 2cbb60a commit 88c224cCopy full SHA for 88c224c
1 file changed
py_gd/py_gd.pyx
@@ -79,7 +79,7 @@ cdef FILE* open_file(file_path) except *:
79
IF UNAME_SYSNAME == 'Windows':
80
cdef bytes bytes_flag = "wb".encode('utf-16')
81
cdef bytes bytes_filepath = file_path.encode('utf-16')
82
- fp = _wfopen(<wchar_t*> bytes_filepath, <wchar_t*> bytes_flag)
+ fp = _wfopen(<wchar_t*><char*>bytes_filepath, <wchar_t*><char*>bytes_flag)
83
ELSE:
84
cdef bytes bytes_flag = "wb".encode('ascii')
85
fp = fopen(file_path.encode('utf-8'), bytes_flag)
0 commit comments