From a3ba8cec90d79621d628982ff21f127e85ca8e91 Mon Sep 17 00:00:00 2001 From: lixianjing Date: Sat, 7 Nov 2020 18:38:59 +0800 Subject: [PATCH] fix warnings --- src/tkc/date_time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tkc/date_time.c b/src/tkc/date_time.c index bc5105643..4c1c4df24 100644 --- a/src/tkc/date_time.c +++ b/src/tkc/date_time.c @@ -150,7 +150,7 @@ static const char* s_en_wday_names[] = { }; const char* date_time_get_wday_name(uint32_t wday) { - return_value_if_fail(wday >= 0 && wday <= 6, NULL); + return_value_if_fail(wday <= 6, NULL); return s_en_wday_names[wday]; }