* win32/win32.c (rb_w32_fdopen): suppress warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a32bc08d36
commit
6ef3fe6349
@ -3656,7 +3656,7 @@ rb_w32_fopen(const char *path, const char *mode)
|
|||||||
FILE *
|
FILE *
|
||||||
rb_w32_fdopen(int handle, const 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 (f == NULL && errno == 0) {
|
||||||
if (handle < 0)
|
if (handle < 0)
|
||||||
errno = EBADF;
|
errno = EBADF;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user