Fix compatibility for x64 arch.
[platform/core/system/sync-agent.git] / src / framework / engine-controller / task.c
index 6ca75ed..6f302d2 100755 (executable)
@@ -26,7 +26,7 @@
 #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"
@@ -895,14 +895,14 @@ GSList *ec_collect_become_runnable_child_tasks_by_remove_control_flow(ec_task_t
 
        /* 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 */