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:
Robert Hensing 2025-09-19 18:10:50 +02:00
parent c924fed81b
commit f7d4499ab2
3 changed files with 6 additions and 5 deletions

View file

@ -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(),