mirror of
https://github.com/haiwen/libsearpc.git
synced 2025-08-09 16:27:17 +00:00
fixed compile for glib-2.28
This commit is contained in:
parent
acefaa9221
commit
f8045eaee3
@ -32,7 +32,8 @@ static json_t *json_serialize_pspec (const GValue *value)
|
||||
case G_TYPE_DOUBLE:
|
||||
return json_real (g_value_get_double (value));
|
||||
case G_TYPE_CHAR:
|
||||
return json_integer (g_value_get_schar (value));
|
||||
/* FIXME: here we should use g_value_get_schar */
|
||||
return json_integer (g_value_get_char (value));
|
||||
case G_TYPE_UCHAR:
|
||||
return json_integer (g_value_get_uchar (value));
|
||||
case G_TYPE_ENUM:
|
||||
@ -109,7 +110,8 @@ static gboolean json_deserialize_pspec (GValue *value, GParamSpec *pspec, json_t
|
||||
json_int_t int_value = json_integer_value (node);
|
||||
switch (G_TYPE_FUNDAMENTAL (G_VALUE_TYPE (value))) {
|
||||
case G_TYPE_CHAR:
|
||||
g_value_set_schar(value, (gchar)int_value);
|
||||
/* FIXME: here we should use g_value_set_schar */
|
||||
g_value_set_char(value, (gchar)int_value);
|
||||
return TRUE;
|
||||
case G_TYPE_UCHAR:
|
||||
g_value_set_uchar (value, (guchar)int_value);
|
||||
|
Loading…
Reference in New Issue
Block a user