Skip to content

Commit

Permalink
Ported all tests to use the new cstring literal syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
FractalFir committed Oct 11, 2024
1 parent 676d8bb commit a8d3b2a
Show file tree
Hide file tree
Showing 114 changed files with 54,777 additions and 54,777 deletions.
2 changes: 1 addition & 1 deletion test/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ fn println(msg: &str) {
tmp_slice[..msg.len()].clone_from_slice(msg.as_bytes());
tmp_slice[msg.len()] = b'\0';
printf(
"%s\n\0".as_ptr() as *const i8,
c"%s\n".as_ptr() as *const i8,
tmp_slice.as_ptr() as *const i8,
);
free(tmp as *mut core::ffi::c_void);
Expand Down
Loading

0 comments on commit a8d3b2a

Please sign in to comment.