Skip to content

Commit

Permalink
fix u32/u64 type cast
Browse files Browse the repository at this point in the history
  • Loading branch information
kamiyaa committed Jan 5, 2019
1 parent 436d828 commit 271f50f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/joshuto/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 271f50f

Please sign in to comment.