Skip to content

Commit

Permalink
Merge branch 'main' into cyr/22
Browse files Browse the repository at this point in the history
  • Loading branch information
brittcyr authored Oct 31, 2024
2 parents 76eeddd + 1b15ffa commit a27db76
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion client/ts/src/utils/numbers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function toNum(n: bignum): number {
if (typeof n === 'number') {
target = n;
} else {
target = n.toNumber();
target = n.toString() as any as number;
}
return target;
}
Expand Down
4 changes: 0 additions & 4 deletions lib/src/red_black_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,6 @@ impl<'a, T> RedBlackTreeReadOperationsHelpers<'a> for T
where
T: GetRedBlackTreeReadOnlyData<'a>,
{
// TODO: Make unchecked versions of these to avoid unnecessary NIL checks
// when we already know the index is not NIL.
fn get_value<V: Payload>(&'a self, index: DataIndex) -> &'a V {
debug_assert_ne!(index, NIL);
let node: &RBNode<V> = get_helper::<RBNode<V>>(self.data(), index);
Expand Down Expand Up @@ -245,8 +243,6 @@ where
}

fn is_left_child<V: Payload>(&self, index: DataIndex) -> bool {
// TODO: Explore if we can store is_left_child and is_right_child in the
// empty bits after color to avoid the compute of checking the parent.
if index == self.root_index() {
return false;
}
Expand Down

0 comments on commit a27db76

Please sign in to comment.