Skip to content

Commit

Permalink
Merge pull request #83 from tehsmeely/fix-platform-specific-cchar-types
Browse files Browse the repository at this point in the history
Resolve platform dependent cstr point types for menu API
  • Loading branch information
boozook authored Jan 22, 2024
2 parents 5367162 + aec0fe8 commit 362f656
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ impl System {
.iter()
.map(|s| CString::new(s.clone()).map_err(|e| anyhow!("CString::new: {}", e)))
.collect::<Result<Vec<CString>, Error>>()?;
let c_options_ptrs: Vec<*const u8> = c_options.iter().map(|c| c.as_ptr()).collect();
let c_options_ptrs: Vec<*const c_char> = c_options.iter().map(|c| c.as_ptr()).collect();
let c_options_ptrs_ptr = c_options_ptrs.as_ptr();
let option_titles = c_options_ptrs_ptr as *mut *const c_char;
let wrapped_callback = Box::new(callback);
Expand Down

0 comments on commit 362f656

Please sign in to comment.