summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-23 11:07:18 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-23 11:07:18 +0000
commit8b5ffc368379b24d8e1f91c901a43f33d4eaefd1 (patch)
tree4863ae7daadd67648b9f33348771fcb9ab82b4bd
parent817507373da8304ffb55594e1e6352054002d0e4 (diff)
win32.c: suppress a warning
* win32/win32.c (rb_w32_write_console): fix the type to suppress a warning of difference in signedness. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--win32/win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 3b100bf4db..d84a913254 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -6818,7 +6818,7 @@ rb_w32_write_console(uintptr_t strarg, int fd)
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;