Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
ae25a3ba
Commit
ae25a3ba
authored
Jul 29, 2012
by
Mukund Sivaraman
Browse files
[2092] Add comment about pointer dereference asked by reviewer
parent
8cbfc95d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/datasrc/rbtree.h
View file @
ae25a3ba
...
...
@@ -1544,6 +1544,8 @@ RBTree<T>::insertRebalance(typename RBNode<T>::RBNodePtr* root,
RBNode
<
T
>*
parent
;
while
(
node
!=
(
*
root
).
get
()
&&
(
parent
=
node
->
getParent
())
->
getColor
()
==
RBNode
<
T
>::
RED
)
{
// Here, node->parent_ is not NULL and it is also red, so
// node->parent_->parent_ is also not NULL.
if
(
parent
==
parent
->
getParent
()
->
getLeft
())
{
uncle
=
parent
->
getParent
()
->
getRight
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment