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:
Daniel van Vugt 2019-09-06 17:39:47 +08:00 committed by Jonas Ådahl
parent 0e69fe0781
commit 7811865e84

View File

@ -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: