On Windows, when the file position exceeds LONG_MAX (31 bits), io_unread() fails to calculate max_extra. Limit max_extra based on the assumption that the maximum value for newlines is rbuf.len. [Bug#21663]YO4 (Yoshinao Muramatsu)
FIX2INT does not call to_int where int and long have the same size, so `method(:puts).curry(1r)` waited for a garbage number of arguments on Windows. Convert the arity once and keep the result as a Fixnum, which also limits the to_int ca...YO4 (Yoshinao Muramatsu)
Applied in changeset commit:git|ec3b6b12e7fdd9eb833ba867eb862956a85f424b. ---------- [Bug #22284] Fix curry with a non-Fixnum arity on LLP64 FIX2INT does not call to_int where int and long have the same size, so `method(:puts).curry(1r...YO4 (Yoshinao Muramatsu)
FIX2INT does not call to_int where int and long have the same size, so `method(:puts).curry(1r)` waited for a garbage number of arguments on Windows. Convert the arity once and keep the result as a Fixnum, which also limits the to_int ca...YO4 (Yoshinao Muramatsu)
Oddly, when building with msvc (19.44), the linking fails only while disabling optimization (using the /Od option). ``` linking miniruby.exe Creating library miniruby.lib and object miniruby.exp set.obj : error LNK2019: unresolved ext...YO4 (Yoshinao Muramatsu)
Using the option (one of -std:[c11|c17|clatest]) to enable standard C support in msvc causes the following error: [BUG] vm_call_method: unsupported method type (-7) Simply disable it.YO4 (Yoshinao Muramatsu)
msvc supports flexible array as it's language extensions. The /Za msvc compiler option disables this and other extensions, but it is not necessary to consider it. The Windows SDK headers contain anonymous unions/structs, and using /Za ma...YO4 (Yoshinao Muramatsu)