mirror of
https://github.com/Noratrieb/stuff.git
synced 2026-01-14 08:30:11 +01:00
fix 3 tuple backend
This commit is contained in:
parent
602f5f83f6
commit
5cf6295130
2 changed files with 5 additions and 2 deletions
|
|
@ -1,5 +1,8 @@
|
|||
# stuff
|
||||
|
||||

|
||||

|
||||
|
||||
A crate for stuffing things into a pointer.
|
||||
|
||||
This crate is tested using miri (with `-Zmiri-tag-raw-pointers`).
|
||||
|
|
|
|||
|
|
@ -132,8 +132,8 @@ macro_rules! impl_backend_3_tuple {
|
|||
|
||||
fn get_int(s: Self::Stored) -> Self {
|
||||
let ptr_addr = Strict::addr(s.0) as $ty;
|
||||
let num1_addr = self.1 as $ty;
|
||||
let num2_addr = self.2 as $ty;
|
||||
let num1_addr = s.1 as $ty;
|
||||
let num2_addr = s.2 as $ty;
|
||||
(ptr_addr << ($num1 + $num2)) | (num1_addr << ($num2)) | num2_addr
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue