summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2019-01-04 21:26:13 -0500
committerJiayi Zhao <jeff.no.zhao@gmail.com>2019-01-04 21:26:13 -0500
commit271f50fbd0be414122e134063b436eaac3b65689 (patch)
treeeb72ab1d23f2ba5dd455e2c401372d251df10736
parent436d828cff697299f19dc3a2efea66ebad379579 (diff)
fix u32/u64 type cast0.6.0
-rw-r--r--src/joshuto/ui.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/joshuto/ui.rs b/src/joshuto/ui.rs
index e054eac..21da7c6 100644
--- a/src/joshuto/ui.rs
+++ b/src/joshuto/ui.rs
@@ -322,7 +322,9 @@ pub fn display_contents(win: &window::JoshutoPanel,
pub fn display_options(win: &window::JoshutoPanel, vals: &Vec<String>)
{
ncurses::werase(win.win);
- ncurses::mvwhline(win.win, 0, 0, '-' as u32, 10000);
+
+ let ch = '-' as ncurses::chtype;
+ ncurses::mvwhline(win.win, 0, 0, ch, 10000);
for (i, val) in vals.iter().enumerate() {
ncurses::wmove(win.win, (i+1) as i32, 0);