From 731acc0950e24262ca657d684ecb6de864ba9b4c Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 28 Feb 2013 04:30:50 +0000 Subject: win32.c: fix type * win32/win32.c (constat_attr): fix type of attributes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- win32/win32.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'win32') diff --git a/win32/win32.c b/win32/win32.c index 22493fa658..9852c907e6 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -5566,12 +5566,12 @@ constat_reset(HANDLE h) } /* License: Ruby's */ -static DWORD -constat_attr(int count, const int *seq, DWORD attr, DWORD default_attr) +static WORD +constat_attr(int count, const int *seq, WORD attr, WORD default_attr) { #define FOREGROUND_MASK (FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED) #define BACKGROUND_MASK (BACKGROUND_BLUE | BACKGROUND_GREEN | BACKGROUND_RED) - DWORD bold = attr & (FOREGROUND_INTENSITY | BACKGROUND_INTENSITY); + WORD bold = attr & (FOREGROUND_INTENSITY | BACKGROUND_INTENSITY); int rev = 0; if (!count) return attr; -- cgit v1.2.3