diff options
| author | Ryan Snyder <ryan@vector35.com> | 2024-05-01 10:43:58 -0400 |
|---|---|---|
| committer | Ryan Snyder <ryan@vector35.com> | 2024-05-01 10:43:58 -0400 |
| commit | 87b1470b2de74640c856d8a90ba88ec672713d71 (patch) | |
| tree | efcdf60ca4b7709b30221cf1e2898c6fc89254b8 /rust/src/architecture.rs | |
| parent | 8817116bee33f3d8bee71fbd82b1220deb10993d (diff) | |
rust: account for changes to NameAndType bindings
Diffstat (limited to 'rust/src/architecture.rs')
| -rw-r--r-- | rust/src/architecture.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rust/src/architecture.rs b/rust/src/architecture.rs index db887e4f..0e1349e6 100644 --- a/rust/src/architecture.rs +++ b/rust/src/architecture.rs @@ -1000,7 +1000,7 @@ impl Intrinsic for crate::architecture::CoreIntrinsic { let ret = slice::from_raw_parts_mut(inputs, count) .iter() - .map(NameAndType::from_raw) + .map(|x| NameAndType::from_raw(x).to_owned()) .collect(); BNFreeNameAndTypeList(inputs, count); @@ -2419,7 +2419,7 @@ where }; let inputs = intrinsic.inputs(); - let mut res: Box<[_]> = inputs.into_iter().map(|input| input.into_raw()).collect(); + let mut res: Box<[_]> = inputs.into_iter().map(|input| unsafe { Ref::into_raw(input) }.0).collect(); unsafe { *count = res.len(); @@ -2443,7 +2443,7 @@ where unsafe { let name_and_types = Box::from_raw(ptr::slice_from_raw_parts_mut(nt, count)); for nt in name_and_types.into_iter() { - BnString::from_raw(nt.name); + Ref::new(NameAndType::from_raw(nt)); } } } |
