Skip to content

Commit

Permalink
fix musl char type mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Will authored and Will committed Feb 25, 2024
1 parent f4a7893 commit 58d6c86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ fn format(fmt: &str, time: time_t) -> String {
};

let mut str = [0i8; 32];
let ptr = str.as_mut_ptr();
let ptr = str.as_mut_ptr() as *mut _;
let len = str.len() - 1;
let fmt = fmt.as_ptr() as *const _;

Expand Down

0 comments on commit 58d6c86

Please sign in to comment.