Signed-off-by: lovechinamo <wangdongqi2@huawei.com>

Changes to be committed:
	modified:   frameworks/inputmethod_controller/src/input_method_controller.cpp
This commit is contained in:
lovechinamo
2022-06-20 21:24:41 +08:00
parent c2b2e4fe98
commit 71a492787d
@@ -386,7 +386,7 @@ using namespace MessageID;
{
constexpr unsigned int MAX_INT32_T = 2147483647;
IMSA_HILOGI("InputMethodController::GetTextBeforeCursor");
if (!mTextString.empty() && mTextString.size <= MAX_INT32_T) {
if (!mTextString.empty() && mTextString.size() <= MAX_INT32_T) {
int32_t endPos = (mSelectNewEnd + number < static_cast<int32_t>(mTextString.size()))
? (mSelectNewEnd + number)
: mTextString.size();