summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-03-24 16:46:51 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-03-24 17:00:33 +0900
commit71f5a747d635237447dbd00c3434951d691d0af7 (patch)
tree2436b1e42d64319b1ae74a3bd70a4cf7156eca86
parent2c34c8fe83282913db8593f2fdfdff58696c46b0 (diff)
warning--
-rw-r--r--src/modules/gengrid_focus_hook/gengrid_focus_hook.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/modules/gengrid_focus_hook/gengrid_focus_hook.c b/src/modules/gengrid_focus_hook/gengrid_focus_hook.c
index 8df840041..465ab6ac5 100644
--- a/src/modules/gengrid_focus_hook/gengrid_focus_hook.c
+++ b/src/modules/gengrid_focus_hook/gengrid_focus_hook.c
@@ -347,16 +347,18 @@ _gengrid_self_focus_item_get(
347 347
348 if (sd->horizontal) 348 if (sd->horizontal)
349 { 349 {
350 if ((cy > (items_row - 1)) || (cx > (columns - 1))) return EINA_FALSE; 350 if ((cy > (int)(items_row - 1)) ||
351 (cx > (int)(columns - 1))) return EINA_FALSE;
351 new_position = items_row * cx + cy; 352 new_position = items_row * cx + cy;
352 } 353 }
353 else 354 else
354 { 355 {
355 if ((cx > (items_col - 1)) || (cy > (rows - 1))) return EINA_FALSE; 356 if ((cx > (int)(items_col - 1)) ||
357 (cy > (int)(rows - 1))) return EINA_FALSE;
356 new_position = cx + items_col * cy; 358 new_position = cx + items_col * cy;
357 } 359 }
358 360
359 if (new_position > (items_count - 1)) return EINA_FALSE; 361 if (new_position > (int)(items_count - 1)) return EINA_FALSE;
360 362
361 focused_pos++; 363 focused_pos++;
362 new_position++; 364 new_position++;