mirror of
https://github.com/corda/corda.git
synced 2025-02-08 20:10:22 +00:00
fix reversed logic in treeNodeRed
This commit is contained in:
parent
2c18ced808
commit
2dba75d7f2
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user