summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2014-07-10 00:45:47 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2014-07-10 00:45:47 +0900
commite1a11daa8f08d051e8b7c781806eaa9f97358b98 (patch)
tree6906d0843901dcef215b3e59ff1834f05ce67e37
parentaac6e071e09103f0c7d223626b8cb00dfb4cf8eb (diff)
examples: use a proper casting for 64 bit system by uintptr_t.
-rw-r--r--src/examples/efl_thread_6.c2
-rw-r--r--src/examples/index_example_02.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/examples/efl_thread_6.c b/src/examples/efl_thread_6.c
index d5689d8c1..1f712a5a3 100644
--- a/src/examples/efl_thread_6.c
+++ b/src/examples/efl_thread_6.c
@@ -108,7 +108,7 @@ anim(void *data)
108 108
109 // just calculate some position using the pointer value of the object as 109 // just calculate some position using the pointer value of the object as
110 // a seed value to make different objects go into different places over time 110 // a seed value to make different objects go into different places over time
111 v = ((int)o) & 0xff; 111 v = ((int)(uintptr_t)o) & 0xff;
112 t = ecore_loop_time_get(); 112 t = ecore_loop_time_get();
113 w = 100 + ((v * 100) >> 8); 113 w = 100 + ((v * 100) >> 8);
114 h = 100 + ((v * 100) >> 8); 114 h = 100 + ((v * 100) >> 8);
diff --git a/src/examples/index_example_02.c b/src/examples/index_example_02.c
index 3c87554fb..cbc604719 100644
--- a/src/examples/index_example_02.c
+++ b/src/examples/index_example_02.c
@@ -37,7 +37,7 @@ _grid_label_get(void *data,
37 Evas_Object *obj, 37 Evas_Object *obj,
38 const char *part) 38 const char *part)
39{ 39{
40 int idx = (int)data; 40 int idx = (int)(uintptr_t)data;
41 return strdup(items[idx]); 41 return strdup(items[idx]);
42} 42}
43 43
@@ -117,7 +117,7 @@ elm_main(int argc,
117 { 117 {
118 char buf[32]; 118 char buf[32];
119 119
120 gg_it = elm_gengrid_item_append(grid, &gic, (void *)i, NULL, NULL); 120 gg_it = elm_gengrid_item_append(grid, &gic, (void *)(uintptr_t)i, NULL, NULL);
121 121
122 /* indexing by first letters */ 122 /* indexing by first letters */
123 snprintf(buf, sizeof(buf), "%c", items[i][0]); 123 snprintf(buf, sizeof(buf), "%c", items[i][0]);