summaryrefslogtreecommitdiff
path: root/win32/win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/win32.c b/win32/win32.c
index b9c09785d5..a72ee909bf 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -3464,9 +3464,9 @@ rb_w32_fopen(const char *path, const char *mode)
}
FILE *
-rb_w32_fdopen(int handle, char *type)
+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;