Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.7k
Commita133529
authored
merge: Bugfix AVLTree comparator (#1084)
The original insertBalance function was doing raw value comparisons as opposed to using the tree's comparator. This is clearly unintentional, and would (ultimately) cause the structure to segfault when constructed with the stringData included in the updated test.I've added the fix, scanned the rest of the code for similar issues, and added the appropriate test case which passes successfully with the fix. The jest code coverage increases slightly as well with the changes.1 parent9790468 commita133529
2 files changed
+17
-5
lines changedLines changed: 5 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
90 | 90 |
| |
91 | 91 |
| |
92 | 92 |
| |
93 |
| - | |
94 |
| - | |
| 93 | + | |
| 94 | + | |
95 | 95 |
| |
96 | 96 |
| |
97 |
| - | |
| 97 | + | |
98 | 98 |
| |
99 | 99 |
| |
100 |
| - | |
| 100 | + | |
101 | 101 |
| |
102 | 102 |
| |
103 | 103 |
| |
| |||
140 | 140 |
| |
141 | 141 |
| |
142 | 142 |
| |
143 |
| - | |
| 143 | + | |
144 | 144 |
| |
145 | 145 |
| |
146 | 146 |
| |
|
Lines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
8 | 12 |
| |
9 | 13 |
| |
10 | 14 |
| |
11 | 15 |
| |
12 | 16 |
| |
13 | 17 |
| |
| 18 | + | |
| 19 | + | |
| 20 | + | |
14 | 21 |
| |
15 | 22 |
| |
16 | 23 |
| |
17 | 24 |
| |
| 25 | + | |
18 | 26 |
| |
19 | 27 |
| |
20 | 28 |
| |
21 | 29 |
| |
22 | 30 |
| |
23 | 31 |
| |
| 32 | + | |
| 33 | + | |
| 34 | + | |
24 | 35 |
| |
25 | 36 |
| |
26 | 37 |
| |
27 | 38 |
| |
28 | 39 |
| |
| 40 | + | |
29 | 41 |
| |
30 | 42 |
|
0 commit comments
Comments
(0)