mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
clutter/paint-node: Convert safely from pointer to integer
To support 32-bit systems without compiler warnings. https://gitlab.gnome.org/GNOME/mutter/merge_requests/778
This commit is contained in:
parent
0e69fe0781
commit
7811865e84
@ -1099,12 +1099,12 @@ clutter_paint_node_to_json (ClutterPaintNode *node)
|
|||||||
|
|
||||||
case PAINT_OP_PATH:
|
case PAINT_OP_PATH:
|
||||||
json_builder_set_member_name (builder, "path");
|
json_builder_set_member_name (builder, "path");
|
||||||
json_builder_add_int_value (builder, (gint64) op->op.path);
|
json_builder_add_int_value (builder, (intptr_t) op->op.path);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PAINT_OP_PRIMITIVE:
|
case PAINT_OP_PRIMITIVE:
|
||||||
json_builder_set_member_name (builder, "primitive");
|
json_builder_set_member_name (builder, "primitive");
|
||||||
json_builder_add_int_value (builder, (gint64) op->op.primitive);
|
json_builder_add_int_value (builder, (intptr_t) op->op.primitive);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PAINT_OP_INVALID:
|
case PAINT_OP_INVALID:
|
||||||
|
Loading…
Reference in New Issue
Block a user