Skip to content

Port two fixes made only in ruby/ruby - #4243

Merged
kddnewton merged 2 commits into
ruby:mainfrom
mame:port-ruby-ruby-fixes
Oct 7, 2026
Merged

kddnewton merged 2 commits into
ruby:mainfrom
mame:port-ruby-ruby-fixes

Conversation

@mame

@mame mame commented Oct 7, 2026

Copy link
Copy Markdown
Member

These two changes were made directly to the copy of prism in ruby/ruby and never landed here, so a sync from this repository reverts them.

  • Use _BitScanForward64 only on 64-bit MSVC (ruby/ruby@2a96d32a95) _BitScanForward64 is not available on 32-bit x86, so the i386-mswin32 build fails at prism.c. Fall back to the portable implementation there.
  • Remove unsupported platforms from host_os patterns (ruby/ruby@7058490a7f) Ruby 1.9.1 dropped DJGPP and Windows CE, and Ruby 2.3 dropped Borland C.

Both commits keep the original author. After this, the three files are identical to the ones in ruby/ruby master.

hsbt and others added 2 commits October 7, 2026 23:43
_BitScanForward64 is not available for 32-bit x86, so the i386-mswin32 build failed at prism.c. Use the portable fallback there, as ntz_int64 in internal/bits.h does.

This was fixed in ruby/ruby (ruby/ruby@2a96d32)
but not here, so syncing from here reverts it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ruby 1.9.1 dropped DJGPP and Windows CE, and Ruby 2.3 dropped Borland C.

This was changed in ruby/ruby (ruby/ruby@7058490)
but not here, so syncing from here reverts it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kddnewton
kddnewton merged commit a0fe15e into ruby:main Oct 7, 2026
110 checks passed
@mame
mame deleted the port-ruby-ruby-fixes branch October 7, 2026 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants