diff options
| author | KyleMiles <krm504@nyu.edu> | 2023-04-18 13:56:22 -0400 |
|---|---|---|
| committer | KyleMiles <krm504@nyu.edu> | 2023-04-18 13:56:22 -0400 |
| commit | 44a9049e2af5a0ff58ff0bccfcb71af4cc303518 (patch) | |
| tree | 657e36e3fe0b1d0de154a6c5a36a81c79228d076 /rust/src/types.rs | |
| parent | b14cdec968445e1502ead497b00f49d5bb68c92a (diff) | |
Rust API : Fix call to BNCreateNamedType
Diffstat (limited to 'rust/src/types.rs')
| -rw-r--r-- | rust/src/types.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/src/types.rs b/rust/src/types.rs index 00c274b7..8a7a51e1 100644 --- a/rust/src/types.rs +++ b/rust/src/types.rs @@ -1857,7 +1857,7 @@ impl NamedTypeReference { /// TODO : Check with Peter about what a better description would be pub fn new(type_class: NamedTypeReferenceClass, mut name: QualifiedName) -> Self { Self { - handle: unsafe { BNCreateNamedType(type_class, "".as_ptr() as _, &mut name.0) }, + handle: unsafe { BNCreateNamedType(type_class, ptr::null() as *const _, &mut name.0) }, } } |
