diff --git a/Cargo.toml b/Cargo.toml index f1ebd79c5..0335ec6fb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,7 @@ bio-types = ">=0.9" byteorder = "1.3" custom_derive = "0.1" derive-new = "0.5" -hts-sys = {version = "2.1.3", default-features = false} +hts-sys = {version = "2.1.3", default-features = false, features = ["bindgen"]} ieee754 = "0.2" lazy_static = "1.4" libc = "0.2" diff --git a/src/bam/mod.rs b/src/bam/mod.rs index fad5cb1a1..f232401e5 100644 --- a/src/bam/mod.rs +++ b/src/bam/mod.rs @@ -1392,9 +1392,9 @@ impl HeaderView { header_string.len(), ); - let rec = htslib::sam_hdr_parse((l_text + 1) as u64, text as *const c_char); + let rec = htslib::sam_hdr_parse((l_text + 1), text as *const c_char); (*rec).text = text as *mut c_char; - (*rec).l_text = l_text as u64; + (*rec).l_text = l_text; rec };