summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c
index ea379c754a..31b0eb07aa 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -3656,7 +3656,7 @@ rb_w32_fopen(const char *path, const char *mode)
FILE *
rb_w32_fdopen(int handle, const char *type)
{
- FILE *f = (errno = 0, _fdopen(handle, type));
+ FILE *f = (errno = 0, _fdopen(handle, (char *)type));
if (f == NULL && errno == 0) {
if (handle < 0)
errno = EBADF;