fix reversed logic in treeNodeRed

This commit is contained in:
Joel Dice 2008-04-07 18:00:59 -06:00
parent 2c18ced808
commit 2dba75d7f2

View File

@ -41,7 +41,7 @@ setTreeNodeValue(Thread* t, object n, object value)
inline bool inline bool
treeNodeRed(Thread*, object n) treeNodeRed(Thread*, object n)
{ {
return (cast<intptr_t>(n, TreeNodeValue) & (~PointerMask)) != 1; return (cast<intptr_t>(n, TreeNodeValue) & (~PointerMask)) == 1;
} }
inline void inline void