1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
--- ext/unicode/unicode.c.orig 2023-07-03 15:50:18 UTC
+++ ext/unicode/unicode.c
@@ -1036,8 +1036,8 @@ unicode_get_categories(VALUE obj, VALUE str)
#endif
WStr_allocWithUTF8L(&wstr, RSTRING_PTR(str), RSTRING_LEN(str));
- return rb_ensure(get_categories_internal, (VALUE)¶m,
- get_categories_ensure, (VALUE)&wstr);
+ return rb_ensure((VALUE (*)(VALUE)) get_categories_internal, (VALUE)¶m,
+ (VALUE (*)(VALUE)) get_categories_ensure, (VALUE)&wstr);
/* wstr will be freed in get_text_elements_ensure() */
}
@@ -1054,8 +1054,8 @@ unicode_get_abbr_categories(VALUE obj, VALUE str)
#endif
WStr_allocWithUTF8L(&wstr, RSTRING_PTR(str), RSTRING_LEN(str));
- return rb_ensure(get_categories_internal, (VALUE)¶m,
- get_categories_ensure, (VALUE)&wstr);
+ return rb_ensure((VALUE (*)(VALUE)) get_categories_internal, (VALUE)¶m,
+ (VALUE (*)(VALUE)) get_categories_ensure, (VALUE)&wstr);
/* wstr will be freed in get_text_elements_ensure() */
}
@@ -1224,8 +1224,8 @@ unicode_get_text_elements(VALUE obj, VALUE str)
#endif
WStr_allocWithUTF8L(&wstr, RSTRING_PTR(str), RSTRING_LEN(str));
- return rb_ensure(get_text_elements_internal, (VALUE)¶m,
- get_text_elements_ensure, (VALUE)&wstr);
+ return rb_ensure((VALUE (*)(VALUE)) get_text_elements_internal, (VALUE)¶m,
+ (VALUE (*)(VALUE)) get_text_elements_ensure, (VALUE)&wstr);
/* wstr will be freed in get_text_elements_ensure() */
}
|