From 52029493b8d099a153fb5c394d639f43145d27bf Mon Sep 17 00:00:00 2001 From: liuyanzhi Date: Fri, 11 Mar 2022 17:01:04 +0800 Subject: [PATCH] add p Signed-off-by: liuyanzhi Change-Id: Ied913bb21336798c6dd7a8de0636b886c6af2f26 --- interfaces/kits/napi/ans/src/reminder/reminder_common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interfaces/kits/napi/ans/src/reminder/reminder_common.cpp b/interfaces/kits/napi/ans/src/reminder/reminder_common.cpp index a874223f9..5f4ada3ae 100644 --- a/interfaces/kits/napi/ans/src/reminder/reminder_common.cpp +++ b/interfaces/kits/napi/ans/src/reminder/reminder_common.cpp @@ -461,7 +461,7 @@ bool ReminderCommon::CheckCalendarParams(const int32_t &year, const int32_t &mon ReminderAgentNapi::CALENDAR_YEAR, UINT16_MAX); return false; } - if ((month < 1 || month) > (ReminderRequestCalendar::MAX_MONTHS_OF_YEAR)) { + if ((month < 1) || (month > (ReminderRequestCalendar::MAX_MONTHS_OF_YEAR))) { ANSR_LOGW("Create calendar reminder fail: designated %{public}s must between [1, %{public}hhu]", ReminderAgentNapi::CALENDAR_MONTH, ReminderRequestCalendar::MAX_MONTHS_OF_YEAR); return false; -- Gitee