diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-04-08 13:28:13 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-08 13:28:13 +0900 |
commit | 9e6e39c3512f7a962c44dc3729c98a0f8be90341 (patch) | |
tree | 901a22676d54d78240e450b64a8cd06eb1703910 /io.c | |
parent | 5ac4bf2cd87e1eb5779ca5ae7f96a1a22e8436d9 (diff) | |
download | ruby-9e6e39c3512f7a962c44dc3729c98a0f8be90341.tar.gz |
Merge pull request #2991 from shyouhei/ruby.h
Split ruby.h
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -11,7 +11,7 @@ **********************************************************************/ -#include "ruby/config.h" +#include "ruby/3/config.h" #ifdef _WIN32 # include "ruby/ruby.h" @@ -112,6 +112,8 @@ # include <copyfile.h> #endif +#include "ruby/3/stdbool.h" +#include "ccan/list/list.h" #include "dln.h" #include "encindex.h" #include "id.h" @@ -123,8 +125,6 @@ #include "internal/numeric.h" #include "internal/object.h" #include "internal/process.h" -#include "internal/stdbool.h" -#include "ccan/list/list.h" #include "internal/thread.h" #include "internal/transcode.h" #include "internal/variable.h" @@ -12157,7 +12157,7 @@ argf_read(int argc, VALUE *argv, VALUE argf) long slen = RSTRING_LEN(str); if (slen < len) { len -= slen; - argv[0] = INT2NUM(len); + argv[0] = LONG2NUM(len); goto retry; } } |