Skip to content

Commit f936bc6

Browse files
committed
fix writing to read-only raw pointer in thread-local test
1 parent 80a0a12 commit f936bc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/run-pass/thread-local.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ fn main() {
5858
// Initialize the keys we use to check destructor ordering
5959
for (key, global) in KEYS.iter_mut().zip(GLOBALS.iter_mut()) {
6060
*key = create(Some(mem::transmute(dtor as unsafe extern fn(*mut u64))));
61-
set(*key, global as *const _ as *mut _);
61+
set(*key, global as *mut _ as *mut u8);
6262
}
6363

6464
// Initialize cannary

0 commit comments

Comments
 (0)