Skip to content

Commit

Permalink
Fix bug #17982.
Browse files Browse the repository at this point in the history
  • Loading branch information
vadimcn committed Oct 26, 2014
1 parent 2130f22 commit f29535d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libterm/win.rs
Expand Up @@ -71,7 +71,8 @@ fn color_to_bits(color: color::Color) -> u16 {
}

fn bits_to_color(bits: u16) -> color::Color {
let color = match bits & 0x7 {
let bits = bits & 0x7;
let color = match bits {
0 => color::BLACK,
0x1 => color::BLUE,
0x2 => color::GREEN,
Expand Down

0 comments on commit f29535d

Please sign in to comment.