]> git.lizzy.rs Git - rust.git/blobdiff - src/libterm/win.rs
Auto merge of #69076 - cjgillot:split_trait, r=matthewjasper
[rust.git] / src / libterm / win.rs
index b6c607a30816cb70d51bae3a3bc9a8e9a2e0180d..c24cf9518aa2539e9e829d9c6e6e081f5942634e 100644 (file)
@@ -89,7 +89,7 @@ fn bits_to_color(bits: u16) -> color::Color {
         _ => unreachable!(),
     };
 
-    color | (bits & 0x8) // copy the hi-intensity bit
+    color | (u32::from(bits) & 0x8) // copy the hi-intensity bit
 }
 
 impl<T: Write + Send + 'static> WinConsole<T> {