Fix compatibility for x64 arch.
[platform/core/system/sync-agent.git] / src / fw-plugins / common-public / task / src / plugin_interface.c
index 27a86dc..6ce1463 100755 (executable)
@@ -20,7 +20,7 @@
 #include <pthread.h>
 #include <calendar2.h>
 #include <account.h>
-
+#include <stdint.h>
 #include "extern_info.h"
 #include "item_change_info.h"
 #include "ext_datastore_info_task.h"
@@ -1307,15 +1307,15 @@ EXPORT_API int sync_agent_plugin_get_field_value(int field_name, int child_field
        case CALENDAR_FIELD_TIMEZONE:
                switch (child_field_name) {
                case CALENDAR_CHILD_FIELD_BIAS:
-                       *num_val1 = (int)VAL_TZ_BIAS;
+                       *num_val1 = (intptr_t)VAL_TZ_BIAS;
                        _EXTERN_FUNC_EXIT;
                        return 1;
                case CALENDAR_CHILD_FIELD_DAYLIGHT:
-                       *num_val1 = (int)VAL_TZ_DAYLIGHT;
+                       *num_val1 = (intptr_t)VAL_TZ_DAYLIGHT;
                        _EXTERN_FUNC_EXIT;
                        return 1;
                case CALENDAR_CHILD_FIELD_DAYLIGHT_BIAS:
-                       *num_val1 = (int)VAL_TZ_DAYLIGHT_BIAS;
+                       *num_val1 = (intptr_t)VAL_TZ_DAYLIGHT_BIAS;
                        _EXTERN_FUNC_EXIT;
                        return 1;
                case CALENDAR_CHILD_FIELD_DAYLIGHT_BEGIN: