aboutsummaryrefslogtreecommitdiffstats
path: root/win32/win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 35cb686d1c..67160bdb71 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -5287,11 +5287,12 @@ rb_w32_write(int fd, const void *buf, size_t size)
}
long
-rb_w32_write_console(VALUE str, int fd)
+rb_w32_write_console(uintptr_t strarg, int fd)
{
static int disable;
HANDLE handle;
DWORD dwMode, reslen;
+ VALUE str = strarg;
if (disable) return -1L;
handle = (HANDLE)_osfhnd(fd);