Skip to content

Commit

Permalink
(one more) portable c-char in dictionary.rs (#251)
Browse files Browse the repository at this point in the history
There is one more pointer to fix. I overlooked it in my previous pull request:
#250
  • Loading branch information
y3ti authored Jul 18, 2022
1 parent 72b519c commit a92477f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rust/src/dictionary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ impl Dictionary {

pub fn get(&self, key: &str) -> KeyviMatch {
let match_ptr = unsafe {
root::keyvi_dictionary_get(self.dict, key.as_ptr() as *const i8, key.len() as u64)
root::keyvi_dictionary_get(
self.dict,
key.as_ptr() as *const ::std::os::raw::c_char,
key.len() as u64,
)
};
KeyviMatch::new(match_ptr)
}
Expand Down

0 comments on commit a92477f

Please sign in to comment.