Pass array references correctly in MMR tests

This commit is contained in:
Jack Grigg 2019-12-05 14:23:59 +00:00
parent 573510115d
commit 583a04b4de
No known key found for this signature in database
GPG Key ID: 9E8255172BBF9898

View File

@ -181,7 +181,7 @@ fn append() {
peaks.as_ptr(), peaks.as_ptr(),
peaks.len(), peaks.len(),
&new_node_data, &new_node_data,
rt_ret.as_mut_ptr(), &mut rt_ret,
buf_ret.as_mut_ptr(), buf_ret.as_mut_ptr(),
); );
@ -220,7 +220,7 @@ fn delete() {
nodes.as_ptr(), nodes.as_ptr(),
peak_count, peak_count,
indices.len() - peak_count, indices.len() - peak_count,
rt_ret.as_mut_ptr(), &mut rt_ret,
); );
// Deleting from full tree of 9 height would result in cascade deleting of 10 nodes // Deleting from full tree of 9 height would result in cascade deleting of 10 nodes