Re: [PATCH] Possible problems when MCHECK is defined

2002-03-26 Thread Ognyan Kulev
James Morrison wrote: >>+#define NBUCKETS (31 - LOG2_MIN_SIZE + 1) > > Why are you using 31 + 1 instead of just 32? NBUCKETS must contain the number of elements between LOG2_MIN_SIZE and 31 inclusively. This calculation is more logical. -- Ognyan Kulev <[EMAIL PROTECTED]>, "\"Programmer\

Re: [PATCH] Possible problems when MCHECK is defined

2002-03-25 Thread James Morrison
--- Ognyan Kulev <[EMAIL PROTECTED]> wrote: > Hi, > > In `libc/hurd/hurdmalloc.c:198' the value of NBUCKETS is defined as 29 > and this is correct when LOG2_MIN_SIZE is 3. But when MCHECK is defined > LOG2_MIN_SIZE becomes 4 and NBUCKETS must be 28. > > Regards > -- > Ognyan Kulev <[EMAIL P

[PATCH] Possible problems when MCHECK is defined

2002-03-25 Thread Ognyan Kulev
Hi, In `libc/hurd/hurdmalloc.c:198' the value of NBUCKETS is defined as 29 and this is correct when LOG2_MIN_SIZE is 3. But when MCHECK is defined LOG2_MIN_SIZE becomes 4 and NBUCKETS must be 28. Regards -- Ognyan Kulev <[EMAIL PROTECTED]>, "\"Programmer\"" 2002-03-25 Ognyan Kulev <[EMAIL