Skip to content

Commit 67d557b

Browse files
committed
Rollup merge of #32189 - srinivasreddy:libterm_suff_rm, r=steveklabnik
removed int suffixes
2 parents a330571 + 47a1b0d commit 67d557b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libterm/win.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ impl<T: Write + Send + 'static> WinConsole<T> {
108108
// terminal! Admittedly, this is fragile, since stderr could be
109109
// redirected to a different console. This is good enough for
110110
// rustc though. See #13400.
111-
let out = GetStdHandle(-11i32 as DWORD);
111+
let out = GetStdHandle(-11 as DWORD);
112112
SetConsoleTextAttribute(out, accum);
113113
}
114114
}
@@ -120,7 +120,7 @@ impl<T: Write + Send + 'static> WinConsole<T> {
120120
let bg;
121121
unsafe {
122122
let mut buffer_info = ::std::mem::uninitialized();
123-
if GetConsoleScreenBufferInfo(GetStdHandle(-11i32 as DWORD), &mut buffer_info) != 0 {
123+
if GetConsoleScreenBufferInfo(GetStdHandle(-11 as DWORD), &mut buffer_info) != 0 {
124124
fg = bits_to_color(buffer_info.wAttributes);
125125
bg = bits_to_color(buffer_info.wAttributes >> 4);
126126
} else {

0 commit comments

Comments
 (0)