From: Jihoon Kim Date: Tue, 18 Jul 2017 10:25:07 +0000 (+0900) Subject: Fix logical error unsigned variable compares with negative value X-Git-Tag: submit/tizen/20170720.014256~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5381c90889fa2af853054b815cd3cec6562905e3;p=platform%2Fcore%2Fuifw%2Flibscl-core.git Fix logical error unsigned variable compares with negative value Expression 'type < 0' is always false , which may be caused by a logical error Change-Id: Ia5c0c56972e43e96636efb3de60b2a2fd2d16d51 Signed-off-by: Jihoon Kim --- diff --git a/src/sclcoreui-efl.cpp b/src/sclcoreui-efl.cpp index 0c4cfbc..415bfa6 100644 --- a/src/sclcoreui-efl.cpp +++ b/src/sclcoreui-efl.cpp @@ -674,7 +674,7 @@ set_transient_for_isf_setting_window(Evas_Object *window) sclwindow CSCLCoreUIEFL::create_option_window(SCLOptionWindowType type) { - if (type < 0 || type >= OPTION_WINDOW_TYPE_MAX) { + if (type >= OPTION_WINDOW_TYPE_MAX) { return SCLWINDOW_INVALID; } @@ -752,7 +752,7 @@ sclwindow CSCLCoreUIEFL::create_option_window(SCLOptionWindowType type) bool CSCLCoreUIEFL::show_option_window(SCLOptionWindowType type) { - if (type < 0 || type >= OPTION_WINDOW_TYPE_MAX) { + if (type >= OPTION_WINDOW_TYPE_MAX) { return SCLWINDOW_INVALID; }