#include "engine-controller/task_spec_internal.h"
#include "engine-controller/param_spec_internal.h"
#include "engine-controller/param_value_internal.h"
-
+#include <stdint.h>
#ifndef SYNC_AGENT_LOG
#undef LOG_TAG
#define LOG_TAG "AF_EC"
/* get to node list from child_index */
/* note that to nodes_list containing sync_agent_ec_int */
- GList *to_node_list = ec_graph_edge_pool_query_to_node_list(control_edge_pool, (sync_agent_ec_constpointer) from_child_task_index);
+ GList *to_node_list = ec_graph_edge_pool_query_to_node_list(control_edge_pool, (sync_agent_ec_constpointer) ((intptr_t)from_child_task_index));
/* remove control flow from child task at child_index of parent task */
GList *iter = NULL;
sync_agent_ec_int to_child_task_index = 0;
ec_task_t *to_child_task = NULL;
for (iter = to_node_list; iter != NULL; iter = g_list_next(iter)) {
- to_child_task_index = (sync_agent_ec_int) (iter->data);
+ to_child_task_index = (sync_agent_ec_int) ((intptr_t)(iter->data));
ec_task_remove_control_flow(parent_task, from_child_task_index, to_child_task_index);
/* if zero in-degree of control flow detected, make child task and append runnable_child_task_list */