mirror of
https://github.com/Noratrieb/the-good-stuff.git
synced 2026-01-17 01:55:01 +01:00
update
This commit is contained in:
parent
71521a5235
commit
a028b8117f
5 changed files with 9 additions and 11 deletions
|
|
@ -31,7 +31,7 @@ impl ThinU128 {
|
|||
} else {
|
||||
let value = (int as usize) << 2;
|
||||
let repr = value | TAG_MASK | ALWAYS_ONE_NICHE;
|
||||
Self(NonNull::new(ptr::invalid_mut(repr)).unwrap())
|
||||
Self(NonNull::new(ptr::without_provenance_mut(repr)).unwrap())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue