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)
downloadefl-86f1e6a00c54a37515b1d3487ef3d9174dc36f38.tar.gz
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_
{
//Add it to the gesture context.
Eina_Hash *thisisreallystupid = eina_hash_find(pd->m_gesture_contex, &target);
- int count = 0;
+ intptr_t count = 0;
/* already present */
if (thisisreallystupid)
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_
eina_hash_set(pd->m_gesture_contex, &target, thisisreallystupid);
}
count++;
- eina_hash_set(thisisreallystupid, &type, (intptr_t*)(long)count);
+ eina_hash_set(thisisreallystupid, &type, (intptr_t*)count);
}
}
@@ -234,13 +234,13 @@ _efl_canvas_gesture_manager_callback_del_hook(void *data, Eo *target, const Efl_
if (recognizer)
{
Eina_Hash *thisisreallystupid = eina_hash_find(pd->m_gesture_contex, &target);
- int count;
+ intptr_t count;
if (!thisisreallystupid) return;
count = (intptr_t)eina_hash_find(thisisreallystupid, &type);
if (!count) return;
count--;
- eina_hash_set(thisisreallystupid, &type, (intptr_t*)(long)count);
+ eina_hash_set(thisisreallystupid, &type, (intptr_t*)count);
if (count) return;
eina_hash_del_by_key(thisisreallystupid, &type);
if (eina_hash_population(thisisreallystupid)) return;