diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-02-28 04:30:50 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-02-28 04:30:50 +0000 |
commit | 731acc0950e24262ca657d684ecb6de864ba9b4c (patch) | |
tree | 14e1dc3d073e0731412ae1fc6933069c6203f9c1 /win32 | |
parent | 8ac0f28399e51322aae86dfbd3bb8c9ed3de4e63 (diff) |
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
Diffstat (limited to 'win32')
-rw-r--r-- | win32/win32.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |