Fix wrong condition check code 02/194402/2
authorInhong Han <inhong1.han@samsung.com>
Tue, 4 Dec 2018 06:15:31 +0000 (15:15 +0900)
committerInhong Han <inhong1.han@samsung.com>
Tue, 4 Dec 2018 06:30:23 +0000 (15:30 +0900)
Change-Id: Iff88d2cb65a0c39a31f6ef3e8287017463412c7a

src/inputmethod.cpp

index 5ce480f0e9d4c9926a522d32cdc6c3aadfbd2638..fb1a7c6685fa6c6ff5ca8cc991a6f65b5c27e2f0 100644 (file)
@@ -2070,7 +2070,7 @@ EXPORT_API int ime_update_input_panel_event(ime_event_type_e type, unsigned int
 {
     ime_error_e retVal = IME_ERROR_NONE;
 
-    if (type >= IME_EVENT_TYPE_LANGUAGE && type <= IME_EVENT_TYPE_GEOMETRY) {
+    if (type < IME_EVENT_TYPE_LANGUAGE && type > IME_EVENT_TYPE_GEOMETRY) {
         LOGW("IME_ERROR_INVALID_PARAMETER");
         return IME_ERROR_INVALID_PARAMETER;
     }
@@ -2083,7 +2083,7 @@ EXPORT_API int ime_update_input_panel_event(ime_event_type_e type, unsigned int
     retVal = _check_privilege();
     if (retVal != IME_ERROR_NONE) return retVal;
 
-    g_core.update_input_context(type, value);
+    g_core.update_input_context((sclu32)type, value);
 
     return IME_ERROR_NONE;
 }