mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue