fix writing to read-only raw pointer in thread-local test
This commit is contained in:
parent
80a0a12b07
commit
f936bc6b92
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ fn main() {
|
|||
// Initialize the keys we use to check destructor ordering
|
||||
for (key, global) in KEYS.iter_mut().zip(GLOBALS.iter_mut()) {
|
||||
*key = create(Some(mem::transmute(dtor as unsafe extern fn(*mut u64))));
|
||||
set(*key, global as *const _ as *mut _);
|
||||
set(*key, global as *mut _ as *mut u8);
|
||||
}
|
||||
|
||||
// Initialize cannary
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue