[前][次][番号順一覧][スレッド一覧]

ruby-changes:27483

From: nobu <ko1@a...>
Date: Thu, 28 Feb 2013 13:30:59 +0900 (JST)
Subject: [ruby-changes:27483] nobu:r39535 (trunk): win32.c: fix type

nobu	2013-02-28 13:30:50 +0900 (Thu, 28 Feb 2013)

  New Revision: 39535

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39535

  Log:
    win32.c: fix type
    
    * win32/win32.c (constat_attr): fix type of attributes.

  Modified files:
    trunk/win32/win32.c

Index: win32/win32.c
===================================================================
--- win32/win32.c	(revision 39534)
+++ win32/win32.c	(revision 39535)
@@ -5566,12 +5566,12 @@ constat_reset(HANDLE h) https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L5566
 }
 
 /* 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;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]