Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

for building on arm64 #194

Merged
merged 1 commit into from Jan 6, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/menu/wrapper.rs
Expand Up @@ -9,6 +9,7 @@ use libc::*;
use menu::ll;
use ll::{WINDOW, chtype, c_bool};
use constants::TRUE;
use std::os::raw::c_char;

pub type MENU = ll::MENU;
pub type ITEM = ll::ITEM;
Expand Down Expand Up @@ -161,11 +162,11 @@ pub fn menu_grey(menu: MENU) -> chtype {
#[cfg(feature="menu")]
pub fn free_item(item: ITEM) {
unsafe {
let name = super::ll::item_name(item) as *mut i8;
let name = super::ll::item_name(item) as *mut c_char;
if name.is_null() == false {
let _ = CString::from_raw(name);
}
let desc = super::ll::item_description(item) as *mut i8;
let desc = super::ll::item_description(item) as *mut c_char;
if desc.is_null() == false {
let _ = CString::from_raw(desc);
}
Expand Down