From 38cdd432addab312eebec1a5a2122074f5ea61a8 Mon Sep 17 00:00:00 2001 From: shaojinchun Date: Fri, 22 Jan 2021 09:11:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3tid=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=B8=80=E5=A4=84=E6=B2=A1=E6=9C=89=E6=94=B9?= =?UTF-8?q?=E5=85=A8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/lwp/lwp_tid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lwp/lwp_tid.c b/components/lwp/lwp_tid.c index daecb5ea1e..d0e273b677 100644 --- a/components/lwp/lwp_tid.c +++ b/components/lwp/lwp_tid.c @@ -77,7 +77,7 @@ rt_thread_t lwp_tid_get_thread(int tid) { thread = lwp_tid_ary[tid]; if ((thread >= (rt_thread_t)lwp_tid_ary) - && (thread < (rt_thread_t)(lwp_tid_ary + LWP_TID_MAX_NR + 1))) + && (thread < (rt_thread_t)(lwp_tid_ary + LWP_TID_MAX_NR))) { /* the tid is not used */ thread = RT_NULL; -- Gitee