]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: Use g_value_*et_schar instead of depecated g_value_*et_char
authorRico Tzschichholz <ricotz@ubuntu.com>
Tue, 27 Mar 2018 08:15:42 +0000 (10:15 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 16 Apr 2018 19:16:21 +0000 (21:16 +0200)
g_value_get_char is broken on platforms where the char type is unsigned,
such as ARM and PowerPC.

vapi/glib-2.0.vapi

index 628be8d143d1cfae1d6ac5853c1a377fdf71b9e0..cf7465c6b2384f0a791cdc86713e9a464bc9cee2 100644 (file)
@@ -64,7 +64,7 @@ public struct bool {
 
 [SimpleType]
 [GIR (name = "gint8")]
-[CCode (cname = "gchar", cprefix = "g_ascii_", cheader_filename = "glib.h", type_id = "G_TYPE_CHAR", marshaller_type_name = "CHAR", get_value_function = "g_value_get_char", set_value_function = "g_value_set_char", default_value = "\'\\0\'", type_signature = "y")]
+[CCode (cname = "gchar", cprefix = "g_ascii_", cheader_filename = "glib.h", type_id = "G_TYPE_CHAR", marshaller_type_name = "CHAR", get_value_function = "g_value_get_schar", set_value_function = "g_value_set_schar", default_value = "\'\\0\'", type_signature = "y")]
 [IntegerType (rank = 2, min = 0, max = 127)]
 public struct char {
        [CCode (cname = "g_strdup_printf", instance_pos = -1)]