From: Nicholas Nethercote Date: Tue, 24 May 2005 20:07:20 +0000 (+0000) Subject: All other checks with VG_N_THREADS are <, except this one. X-Git-Tag: svn/VALGRIND_3_0_0~519 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cf5e87efdf2b97a522f239e49d00027efc37e3ae;p=thirdparty%2Fvalgrind.git All other checks with VG_N_THREADS are <, except this one. (From Madhu Kurup.) git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3799 --- diff --git a/coregrind/vg_scheduler.c b/coregrind/vg_scheduler.c index d6c0a87c00..50b3c2d0cc 100644 --- a/coregrind/vg_scheduler.c +++ b/coregrind/vg_scheduler.c @@ -240,7 +240,7 @@ ThreadId VG_(get_lwp_tid)(Int lwp) { ThreadId tid; - for(tid = 1; tid <= VG_N_THREADS; tid++) + for(tid = 1; tid < VG_N_THREADS; tid++) if (VG_(threads)[tid].status != VgTs_Empty && VG_(threads)[tid].os_state.lwpid == lwp) return tid;