stack mapping progress

This commit is contained in:
Joel Dice
2007-10-12 08:26:36 -06:00
parent 3e1dbab0f0
commit 5a92852f74
2 changed files with 14 additions and 12 deletions

View File

@ -142,7 +142,8 @@ clearBit(uintptr_t* map, unsigned i)
inline unsigned
getBit(uintptr_t* map, unsigned i)
{
return map[wordOf(i)] & (static_cast<uintptr_t>(1) << bitOf(i));
return (map[wordOf(i)] & (static_cast<uintptr_t>(1) << bitOf(i)))
>> bitOf(i);
}
template <class T>