]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
All other checks with VG_N_THREADS are <, except this one.
authorNicholas Nethercote <njn@valgrind.org>
Tue, 24 May 2005 20:07:20 +0000 (20:07 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Tue, 24 May 2005 20:07:20 +0000 (20:07 +0000)
(From Madhu Kurup.)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3799

coregrind/vg_scheduler.c

index d6c0a87c00b8a6813a30d2e5f4781fd2a9a73fa8..50b3c2d0cc4b6a3ea445dd7b0286bec8c4aca9f1 100644 (file)
@@ -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;