mirror of
https://git.freebsd.org/ports.git
synced 2025-06-02 19:36:28 -04:00
biology/coverm: fix build with char being unsigned
error[E0308]: mismatched types --> /wrkdirs/usr/ports/biology/coverm/work/CoverM-0.7.0/cargo-crates/rust-htslib-0.44.1/src/bam/record.rs:2324:17 | 2319 | let ret = hts_sys::bam_mods_query_type( | ---------------------------- arguments to this function are incorrect ... 2324 | &mut canonical, | ^^^^^^^^^^^^^^ expected `*mut u8`, found `&mut i8` | = note: expected raw pointer `*mut u8` found mutable reference `&mut i8`
This commit is contained in:
parent
099ec64e6a
commit
007dfde660
1 changed files with 20 additions and 0 deletions
|
@ -0,0 +1,20 @@
|
|||
--- cargo-crates/rust-htslib-0.44.1/src/bam/record.rs.orig 2024-12-26 16:34:58 UTC
|
||||
+++ cargo-crates/rust-htslib-0.44.1/src/bam/record.rs
|
||||
@@ -2216,7 +2216,7 @@ pub struct BaseModificationMetadata {
|
||||
pub struct BaseModificationMetadata {
|
||||
pub strand: i32,
|
||||
pub implicit: i32,
|
||||
- pub canonical: i8,
|
||||
+ pub canonical: c_char,
|
||||
}
|
||||
|
||||
/// struct containing the internal state required to access
|
||||
@@ -2314,7 +2314,7 @@ impl BaseModificationState<'_> {
|
||||
unsafe {
|
||||
let mut strand: i32 = 0;
|
||||
let mut implicit: i32 = 0;
|
||||
- let mut canonical: i8 = 0;
|
||||
+ let mut canonical: c_char = 0;
|
||||
|
||||
let ret = hts_sys::bam_mods_query_type(
|
||||
self.state,
|
Loading…
Add table
Reference in a new issue