summaryrefslogtreecommitdiff
path: root/src/lib/eo/eo_base_class.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-02-11 13:13:19 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-02-11 23:13:00 +0900
commiteb3f6f06f1308c474bb75c5bbd51caef37b1715d (patch)
tree76272c01bcd4675c0e53897874f7b178dcc141a6 /src/lib/eo/eo_base_class.c
parentb3f0db816a3fa4dde793200a930d74d328fe2cfc (diff)
efl base class - fix warning about comparing differing sizes
yes - we compare a difference between 2 ptrs and an index which is a uint. the safe thing here is to promote the unit to the ptrdiff_t type. reality is we cant have more than 2^32 cb's on an object anyway... so this should be ok.
Diffstat (limited to '')
-rw-r--r--src/lib/eo/eo_base_class.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/eo/eo_base_class.c b/src/lib/eo/eo_base_class.c
index eac4bbbba5..2f3803aab9 100644
--- a/src/lib/eo/eo_base_class.c
+++ b/src/lib/eo/eo_base_class.c
@@ -1150,7 +1150,8 @@ _eo_callbacks_sorted_insert(Efl_Object_Data *pd, Eo_Callback_Description *cb)
1150 // Update possible event emissions 1150 // Update possible event emissions
1151 for (frame = pd->event_frame; frame; frame = frame->next) 1151 for (frame = pd->event_frame; frame; frame = frame->next)
1152 { 1152 {
1153 if (itr-pd->callbacks < frame->idx) frame->inserted_before++; 1153 if ((itr - pd->callbacks) < (ptrdiff_t)frame->idx)
1154 frame->inserted_before++;
1154 } 1155 }
1155} 1156}
1156 1157