Index: nspr/pr/src/threads/combined/prucpu.c |
diff --git a/nspr/pr/src/threads/combined/prucpu.c b/nspr/pr/src/threads/combined/prucpu.c |
index 56322bb8eb6092bc8d367243a517e262fc93a3aa..3913dc8de670ab58c301e8fe8fd1bb517b6a8393 100644 |
--- a/nspr/pr/src/threads/combined/prucpu.c |
+++ b/nspr/pr/src/threads/combined/prucpu.c |
@@ -124,7 +124,7 @@ static _PRCPUQueue *_PR_CreateCPUQueue(void) |
_MD_NEW_LOCK( &cpuQueue->sleepQLock ); |
_MD_NEW_LOCK( &cpuQueue->miscQLock ); |
- for (index = 0; index < PR_PRIORITY_LAST + 1; index++) |
+ for (index = 0; index < PR_ARRAY_SIZE(cpuQueue->runQ); index++) |
PR_INIT_CLIST( &(cpuQueue->runQ[index]) ); |
PR_INIT_CLIST( &(cpuQueue->sleepQ) ); |
PR_INIT_CLIST( &(cpuQueue->pauseQ) ); |