Skip to content

Commit

Permalink
Remove char* from public 'C' API (#367)
Browse files Browse the repository at this point in the history
  • Loading branch information
rickwebiii authored Mar 4, 2024
1 parent a256e42 commit 8d6b64b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion seal_fhe/SEAL
2 changes: 1 addition & 1 deletion seal_fhe/src/plaintext_ciphertext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ impl Plaintext {
let hex_string = CString::new(hex_str).unwrap();

convert_seal_error(unsafe {
bindgen::Plaintext_Create4(hex_string.as_ptr() as *mut i8, null_mut(), &mut handle)
bindgen::Plaintext_Create4(hex_string.as_ptr() as *mut u8, null_mut(), &mut handle)
})?;

Ok(Self { handle })
Expand Down

0 comments on commit 8d6b64b

Please sign in to comment.