summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2020-05-15 03:42:30 +0000
committerStefan Schmidt <s.schmidt@samsung.com>2020-05-19 13:58:59 +0200
commit86f1e6a00c54a37515b1d3487ef3d9174dc36f38 (patch)
treee63b5500089fc8639ae932b79bdb8d96e3c2cf39
parent3230c8de9f1083204e5d1a5c7be7a7ed723caf03 (diff)
evas: gesture_manager: fix usage of long on Windows
On Windows 64bits, long is a 4 bytes type. Declare count as being a intptr_t instead of long Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Differential Revision: https://phab.enlightenment.org/D11836
-rw-r--r--src/lib/evas/gesture/efl_canvas_gesture_manager.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/evas/gesture/efl_canvas_gesture_manager.c b/src/lib/evas/gesture/efl_canvas_gesture_manager.c
index 4a1239637f..38071d40e8 100644
--- a/src/lib/evas/gesture/efl_canvas_gesture_manager.c
+++ b/src/lib/evas/gesture/efl_canvas_gesture_manager.c
@@ -206,7 +206,7 @@ _efl_canvas_gesture_manager_callback_add_hook(void *data, Eo *target, const Efl_
206 { 206 {
207 //Add it to the gesture context. 207 //Add it to the gesture context.
208 Eina_Hash *thisisreallystupid = eina_hash_find(pd->m_gesture_contex, &target); 208 Eina_Hash *thisisreallystupid = eina_hash_find(pd->m_gesture_contex, &target);
209 int count = 0; 209 intptr_t count = 0;
210 /* already present */ 210 /* already present */
211 if (thisisreallystupid) 211 if (thisisreallystupid)
212 count = (intptr_t)eina_hash_find(thisisreallystupid, &type); 212 count = (intptr_t)eina_hash_find(thisisreallystupid, &type);
@@ -216,7 +216,7 @@ _efl_canvas_gesture_manager_callback_add_hook(void *data, Eo *target, const Efl_
216 eina_hash_set(pd->m_gesture_contex, &target, thisisreallystupid); 216 eina_hash_set(pd->m_gesture_contex, &target, thisisreallystupid);
217 } 217 }
218 count++; 218 count++;
219 eina_hash_set(thisisreallystupid, &type, (intptr_t*)(long)count); 219 eina_hash_set(thisisreallystupid, &type, (intptr_t*)count);
220 } 220 }
221} 221}
222 222
@@ -234,13 +234,13 @@ _efl_canvas_gesture_manager_callback_del_hook(void *data, Eo *target, const Efl_
234 if (recognizer) 234 if (recognizer)
235 { 235 {
236 Eina_Hash *thisisreallystupid = eina_hash_find(pd->m_gesture_contex, &target); 236 Eina_Hash *thisisreallystupid = eina_hash_find(pd->m_gesture_contex, &target);
237 int count; 237 intptr_t count;
238 238
239 if (!thisisreallystupid) return; 239 if (!thisisreallystupid) return;
240 count = (intptr_t)eina_hash_find(thisisreallystupid, &type); 240 count = (intptr_t)eina_hash_find(thisisreallystupid, &type);
241 if (!count) return; 241 if (!count) return;
242 count--; 242 count--;
243 eina_hash_set(thisisreallystupid, &type, (intptr_t*)(long)count); 243 eina_hash_set(thisisreallystupid, &type, (intptr_t*)count);
244 if (count) return; 244 if (count) return;
245 eina_hash_del_by_key(thisisreallystupid, &type); 245 eina_hash_del_by_key(thisisreallystupid, &type);
246 if (eina_hash_population(thisisreallystupid)) return; 246 if (eina_hash_population(thisisreallystupid)) return;