Skip to content

Commit 71d302c

Browse files
committed
Update tests
1 parent 9016882 commit 71d302c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/unit/out/unsafe/user_defined_same_as_libc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ pub fn main() {
1818
}
1919
unsafe fn main_0() -> i32 {
2020
let mut fp: *mut ::std::fs::File = (unsafe {
21-
let _path: *const u8 = b"/etc/passwd\0".as_ptr().cast_mut().cast_const();
22-
let _mode: *const u8 = b"r\0".as_ptr().cast_mut().cast_const();
21+
let _path: *const u8 = (b"/etc/passwd\0".as_ptr().cast_mut()).cast_const();
22+
let _mode: *const u8 = (b"r\0".as_ptr().cast_mut()).cast_const();
2323
fopen_0(_path, _mode)
2424
});
2525
assert!(((((fp).is_null()) as i32) != 0));

0 commit comments

Comments
 (0)