From 6e8614f07ca80de8b3ed964f9e8b1f67b6091b9a Mon Sep 17 00:00:00 2001 From: Inhong Han Date: Tue, 4 Dec 2018 15:15:31 +0900 Subject: [PATCH] Fix wrong condition check code Change-Id: Iff88d2cb65a0c39a31f6ef3e8287017463412c7a --- src/inputmethod.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/inputmethod.cpp b/src/inputmethod.cpp index 5ce480f..fb1a7c6 100644 --- a/src/inputmethod.cpp +++ b/src/inputmethod.cpp @@ -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; } -- 2.34.1