Skip to content

Fix JSON::State#max_nesting for values outside the Fixnum range - #1160

Merged
byroot merged 2 commits into
ruby:masterfrom
byroot:fix-state-integer-getters
Dec 5, 2026
Merged

byroot merged 2 commits into
ruby:masterfrom
byroot:fix-state-integer-getters

Conversation

@byroot

@byroot byroot commented Dec 5, 2026

Copy link
Copy Markdown
Member

There's no fucking way anyone would ever run into this problem, but if that can appease bots...

Reported-By: Ryan Lopopolo <rjl@hyperbo.la>
@byroot

byroot commented Dec 5, 2026

Copy link
Copy Markdown
Member Author

While I was at it, I just converted all the long and some int to size_t / ssizet_t.

The parser and generator had a bunch of `long` and even some `int`.
`long` particularly is annoying because it's shorter on Windows,
so let's standardize on `size_t` style everywhere.
@byroot
byroot force-pushed the fix-state-integer-getters branch from ecf8659 to 455f328 Compare December 5, 2026 09:33
@byroot
byroot merged commit c8f3697 into ruby:master Dec 5, 2026
42 checks passed
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.

1 participant