[go: nahoru, domu]

Skip to content

Commit

Permalink
Merge branch 'latest' of https://github.com/sourmash-bio/sourmash int…
Browse files Browse the repository at this point in the history
…o compare_labels
  • Loading branch information
ctb committed Apr 29, 2023
2 parents 9bffd2a + 07ef4d1 commit e5c3ade
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 15 deletions.
42 changes: 30 additions & 12 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions src/core/src/sketch/nodegraph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,7 @@ impl Nodegraph {
//wtr.write_u32_from::<LittleEndian>(&count.as_slice()[..div])?;
let slice = &count.as_slice()[..div];
let buf = unsafe {
use std::mem::size_of;

let len = size_of::<u32>() * slice.len();
let len = std::mem::size_of_val(slice);
slice::from_raw_parts(slice.as_ptr() as *const u8, len)
};
wtr.write_all(buf)?;
Expand Down

0 comments on commit e5c3ade

Please sign in to comment.