summaryrefslogtreecommitdiffstats
path: root/win32
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-02-10 12:18:16 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-02-10 12:18:16 +0000
commit6440e699a0d4a764de723931edb86ce59e3808f2 (patch)
tree6535ac80b3adcfd10ed061a62388974860b0cc73 /win32
parentc91a25c728e3f3d2937825ca49159e83b1751779 (diff)
downloadruby-6440e699a0d4a764de723931edb86ce59e3808f2.tar.gz
ruby-6440e699a0d4a764de723931edb86ce59e3808f2.tar.xz
ruby-6440e699a0d4a764de723931edb86ce59e3808f2.zip
* win32/win32.c (rb_w32_fdopen): suppress warning.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 ea379c754..31b0eb07a 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;