about summary refs log tree commit diff
path: root/src/libterm
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-04-01 18:44:53 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-04-02 00:18:45 -0700
commite3b7e6caa25bffcffe6b04f550f551e1ae086f6b (patch)
tree460e4d59504435411421cf261c5735a726f16942 /src/libterm
parentfb77443213d3be1e0c937b6f9e114e0c8c5b2bb5 (diff)
Tweak relese notes + rebase fixes
Diffstat (limited to 'src/libterm')
-rw-r--r--src/libterm/win.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libterm/win.rs b/src/libterm/win.rs
index 001313db676..66ef5e86617 100644
--- a/src/libterm/win.rs
+++ b/src/libterm/win.rs
@@ -104,7 +104,7 @@ impl<T: Write+Send+'static> WinConsole<T> {
             // terminal! Admittedly, this is fragile, since stderr could be
             // redirected to a different console. This is good enough for
             // rustc though. See #13400.
-            let out = GetStdHandle(-11);
+            let out = GetStdHandle(-11i32 as libc::DWORD);
             SetConsoleTextAttribute(out, accum);
         }
     }
@@ -116,7 +116,8 @@ impl<T: Write+Send+'static> WinConsole<T> {
         let bg;
         unsafe {
             let mut buffer_info = ::std::mem::uninitialized();
-            if GetConsoleScreenBufferInfo(GetStdHandle(-11), &mut buffer_info) != 0 {
+            if GetConsoleScreenBufferInfo(GetStdHandle(-11i32 as libc::DWORD),
+                                          &mut buffer_info) != 0 {
                 fg = bits_to_color(buffer_info.wAttributes);
                 bg = bits_to_color(buffer_info.wAttributes >> 4);
             } else {