Change-Id: Iff88d2cb65a0c39a31f6ef3e8287017463412c7a
{
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;
}
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;
}