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

ruby-changes:38535

From: nobu <ko1@a...>
Date: Sat, 23 May 2015 20:07:37 +0900 (JST)
Subject: [ruby-changes:38535] nobu:r50616 (trunk): win32.c: suppress a warning

nobu	2015-05-23 20:07:18 +0900 (Sat, 23 May 2015)

  New Revision: 50616

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

  Log:
    win32.c: suppress a warning
    
    * win32/win32.c (rb_w32_write_console): fix the type to suppress a
      warning of difference in signedness.

  Modified files:
    trunk/win32/win32.c
Index: win32/win32.c
===================================================================
--- win32/win32.c	(revision 50615)
+++ win32/win32.c	(revision 50616)
@@ -6818,7 +6818,7 @@ rb_w32_write_console(uintptr_t strarg, i https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L6818
 	long curlen = constat_parse(handle, s, (next = ptr, &next), &len);
 	reslen += next - ptr;
 	if (curlen > 0) {
-	    long written;
+	    DWORD written;
 	    if (!WriteConsoleW(handle, ptr, curlen, &written, NULL)) {
 		if (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)
 		    disable = TRUE;

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

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