Skip to content

Add unpack/pack 'j' and 'J' support#6497

Merged
headius merged 2 commits intojruby:masterfrom
headius:pack_it_up
Dec 16, 2020
Merged

Add unpack/pack 'j' and 'J' support#6497
headius merged 2 commits intojruby:masterfrom
headius:pack_it_up

Conversation

@headius
Copy link
Member

@headius headius commented Dec 16, 2020

Adds support for 'j' and 'J' in pack and unpack.

Two specs related to 'p' needed new tags because the only passed due to the brokenness of 'j'.

This eliminates around 250 spec tags.

Basically just 'q' and 'Q' since we always behave like a 64-bit
system. This may need to be reexamined when running on other bit
widths if the values produced by 'j' and 'J' are being used to
generate native pointer values.
Two Array#pack 'p' specs needed new tags because 'j' works now
and was used for comparison before.
@headius headius added this to the JRuby 9.3.0.0 milestone Dec 16, 2020
@headius headius merged commit f9dfb5f into jruby:master Dec 16, 2020
@headius headius deleted the pack_it_up branch December 16, 2020 07:20
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