Skip to content

Commit 553acb0

Browse files
committed
Cosmetic fix.
1 parent 5bcd49e commit 553acb0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/buffer_set.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ static inline uint16_t _rotate_right(
304304
// a_node->left can be NULL_IDX,
305305
// but since we have a special dummy node at offset 0,
306306
// we can safely set the parent there instead of branching
307+
// even if a_node->left == 0
307308
_get_node(buffer_set, a_node->left)->parent = a_idx;
308309
b_node->parent = parent_idx;
309310
b_node->right = a_idx;
@@ -330,6 +331,7 @@ static inline uint16_t _rotate_left(
330331
// a_node->right can be NULL_IDX,
331332
// but since we have a special dummy node at offset 0,
332333
// we can safely set the parent there instead of branching
334+
// even if a_node->right == 0
333335
_get_node(buffer_set, a_node->right)->parent = a_idx;
334336
b_node->parent = parent_idx;
335337
b_node->left = a_idx;

0 commit comments

Comments
 (0)