From b7cfa22f00d857100334434c71bb739ec9f50461 Mon Sep 17 00:00:00 2001 From: petevine Date: Tue, 1 Dec 2015 00:40:30 +0100 Subject: [PATCH] Fix compilation on arm using nightly rust 1.6 Probably sound for a const pointer. --- src/ncurses.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ncurses.rs b/src/ncurses.rs index 0bc80619..5fb0e796 100644 --- a/src/ncurses.rs +++ b/src/ncurses.rs @@ -1116,7 +1116,7 @@ pub fn setlocale(lc: LcCategory, locale: &str) -> String unsafe { let buf = locale.to_c_str().as_ptr(); let ret = ll::setlocale(lc as libc::c_int, buf); - String::from_c_str(ret as *const i8) + String::from_c_str(ret as *const _) } }