Debian Codegraph @

debian/patches/fix-incompat-types.patch

raw symbols SCIP
1 Description: use type casting to fix incompatible types
2 Bug-Debian: https://bugs.debian.org/1087453
3 Bug: https://github.com/pediapress/pyfribidi/issues/15
4 Index: pyfribidi/pyfribidi.c
5 ===================================================================
6 --- pyfribidi.orig/pyfribidi.c 2019-12-25 09:34:42.822211009 +0100
7 +++ pyfribidi/pyfribidi.c 2024-12-22 16:47:01.093942785 +0100
8 @@ -57,7 +57,7 @@
9 goto cleanup;
10 }
11
12 - PyUnicode_AsWideChar(string, logical, length);
13 + PyUnicode_AsWideChar(string, (wchar_t*) logical, length);
14
15 /* Convert to unicode and order visually */
16 fribidi_set_reorder_nsm(reordernsm);
17 @@ -75,7 +75,7 @@ unicode_log2vis (PYFRIBIDI_UNICODE_OBJECT * string,
18 length = fribidi_remove_bidi_marks (visual, length, NULL, NULL, NULL);
19 }
20
21 - result = PyUnicode_FromWideChar(visual, length);
22 + result = PyUnicode_FromWideChar((const wchar_t*) visual, length);
23 if (result == NULL) {
24 goto cleanup;
25 }