Skip to content

Fix follow-ups to the rb_len_t adoption - #229

Merged
nobu merged 3 commits into
masterfrom
claude/strange-bartik-9b5d97
Oct 10, 2026
Merged

nobu merged 3 commits into
masterfrom
claude/strange-bartik-9b5d97

Conversation

@hsbt

@hsbt hsbt commented Oct 10, 2026

Copy link
Copy Markdown
Member

#228 left two issues behind. StringIO#read still formats its rb_len_t length with %ld, which stops matching once rb_len_t is wider than long, as Feature #22400 proposes for mswin. It now uses PRIdLEN, with a fallback for Ruby without rb_len_t.

StringIO#seek started comparing whence with Fixnums directly, so a Float or an object with to_int raised Errno::EINVAL, while IO#seek and the JRuby version accept them. This restores the conversion and adds a test.

I also ignore .build, where rake compile builds the extension since the switch to ruby-core-tasks.

Generated with Claude Code

hsbt and others added 3 commits October 11, 2026 05:57
`len` is rb_len_t since d3c5e6d, so `%ld` no longer matches it once rb_len_t is wider than long.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
d3c5e6d compared whence with Fixnums directly, so a Float or an object with `to_int`, which IO#seek and the JRuby version accept, raised Errno::EINVAL.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`rake compile` builds the extension under `.build` since the switch to ruby-core-tasks, and only the `.so` and `Makefile` there were ignored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hsbt
hsbt deployed to release October 10, 2026 21:40 — with GitHub Actions Active
@hsbt
hsbt deployed to release October 10, 2026 21:40 — with GitHub Actions Active
@nobu
nobu merged commit 1729f27 into master Oct 10, 2026
136 checks passed
@nobu
nobu deleted the claude/strange-bartik-9b5d97 branch October 10, 2026 23:54

This branch was successfully deployed

1 active deployment
release — 860c3178 Deployed Oct 10, 2026 by hsbt via RubyGems (ruby) #268
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.

2 participants