From: "rhenium (Kazuki Yamaguchi) via ruby-core" Date: 2026-11-24T18:26:12+00:00 Subject: [ruby-core:127702] [Ruby Feature#14378] Increase Fixnum range on Windows from 31 bits to 63 bits Issue #14378 has been updated by rhenium (Kazuki Yamaguchi). For reference: [Feature #22400] was accepted and merged for Ruby 4.1. Array/String lengths were the other offender where `long` was used instead of a pointer-sized type in the C API, but they now use the new typedef `rb_len_t`. ---------------------------------------- Feature #14378: Increase Fixnum range on Windows from 31 bits to 63 bits https://bugs.ruby-lang.org/issues/14378#change-120215 * Author: HfCloud (Xiangyu Shi) * Status: Open * Assignee: windows ---------------------------------------- On windows, start an IRB of a 64-bits ruby, enter these code: ~~~ruby (1<<29).equal?(1<<29) #=>true (1<<30).equal?(1<<30) #=>false ~~~ So, it is that FIXNUM of the 64-bits ruby is a 32-bits data? But my friend try these code on linux platform and all got true(it means FIXNUM is 64bits) Then I opened ruby/ruby.h and found this: ~~~ ruby #define RUBY_FIXNUM_MAX (LONG_MAX>>1) ~~~ The LONG_MAX of my compiler(msvc140, vs2017) is 2147483647, and the ruby which is installed by ruby-installer also have the same problem. -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/