fix: Use c_char where appropriate
This builds on the previous commit to make it compatible with the currently locked build configuration. (cherry picked from commit bd1edec2fa5251263c768c3e2b312eb4f21d2bb4)
This commit is contained in:
parent
c924fed81b
commit
f7d4499ab2
3 changed files with 6 additions and 5 deletions
|
|
@ -284,7 +284,7 @@ impl EvalState {
|
|||
let n = unsafe { check_call!(raw::get_attrs_size(&mut self.context, v.raw_ptr())) }?;
|
||||
let mut attrs = Vec::with_capacity(n as usize);
|
||||
for i in 0..n {
|
||||
let cstr_ptr: *const u8 = unsafe {
|
||||
let cstr_ptr: *const c_char = unsafe {
|
||||
check_call!(raw::get_attr_name_byidx(
|
||||
&mut self.context,
|
||||
v.raw_ptr(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue