summaryrefslogtreecommitdiff
path: root/src/lib/ecore_x
diff options
context:
space:
mode:
authorPrince Kumar Dubey <prince.dubey@samsung.com>2017-10-13 12:07:25 -0700
committerCedric Bail <cedric@osg.samsung.com>2017-10-13 12:07:28 -0700
commit41197981abcfe6a01b4208e30f700c714dc1d648 (patch)
tree1d5e0237a59d8d4038cc29eb28ce9fbf03b6407e /src/lib/ecore_x
parentcb4a17ab22885c81dfaa20c7eed73659a7037641 (diff)
efl: unsigned int/long never be less than zero. Fixed.
Reviewers: raster, cedric Subscribers: rajeshps, jpeg Differential Revision: https://phab.enlightenment.org/D5300 Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/ecore_x')
-rw-r--r--src/lib/ecore_x/ecore_x_e.c4
-rw-r--r--src/lib/ecore_x/ecore_x_keygrab.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/ecore_x/ecore_x_e.c b/src/lib/ecore_x/ecore_x_e.c
index 9999af1..8d10ba0 100644
--- a/src/lib/ecore_x/ecore_x_e.c
+++ b/src/lib/ecore_x/ecore_x_e.c
@@ -1173,7 +1173,7 @@ ecore_x_e_window_profile_list_set(Ecore_X_Window win,
1173 if (!win) 1173 if (!win)
1174 return; 1174 return;
1175 1175
1176 if ((!profiles) || (num_profiles <= 0)) 1176 if ((!profiles) || (num_profiles == 0))
1177 ecore_x_window_prop_property_del(win, ECORE_X_ATOM_E_WINDOW_PROFILE_AVAILABLE_LIST); 1177 ecore_x_window_prop_property_del(win, ECORE_X_ATOM_E_WINDOW_PROFILE_AVAILABLE_LIST);
1178 else 1178 else
1179 { 1179 {
@@ -1382,7 +1382,7 @@ ecore_x_e_window_available_profiles_set(Ecore_X_Window win,
1382 if (!win) 1382 if (!win)
1383 return; 1383 return;
1384 1384
1385 if ((!profiles) || (count <= 0)) 1385 if ((!profiles) || (count == 0))
1386 ecore_x_window_prop_property_del(win, ECORE_X_ATOM_E_WINDOW_PROFILE_AVAILABLE_LIST); 1386 ecore_x_window_prop_property_del(win, ECORE_X_ATOM_E_WINDOW_PROFILE_AVAILABLE_LIST);
1387 else 1387 else
1388 { 1388 {
diff --git a/src/lib/ecore_x/ecore_x_keygrab.c b/src/lib/ecore_x/ecore_x_keygrab.c
index 4ed762d..64f342b 100644
--- a/src/lib/ecore_x/ecore_x_keygrab.c
+++ b/src/lib/ecore_x/ecore_x_keygrab.c
@@ -542,7 +542,7 @@ _ecore_x_window_keygrab_unset_internal(Ecore_X_Window win,
542 if (!_ecore_x_window_keytable_get(win, &keytable)) 542 if (!_ecore_x_window_keytable_get(win, &keytable))
543 return EINA_FALSE; 543 return EINA_FALSE;
544 544
545 if (keytable.key_cnt <= 0) 545 if (keytable.key_cnt == 0)
546 return EINA_FALSE; 546 return EINA_FALSE;
547 547
548 i = _ecore_x_window_keytable_key_search(&keytable, keycode); 548 i = _ecore_x_window_keytable_key_search(&keytable, keycode);