Skip to content

Fix uniq/uniq! with block for array slices#1483

Merged
enebo merged 1 commit intojruby:masterfrom
grddev:uniq_bang
Feb 6, 2014
Merged

Fix uniq/uniq! with block for array slices#1483
enebo merged 1 commit intojruby:masterfrom
grddev:uniq_bang

Conversation

@grddev
Copy link
Contributor

@grddev grddev commented Feb 5, 2014

Avoid adjusting for slice offset twice.

Probably fixes #1434

Avoid adjusting for slice offset twice.
enebo added a commit that referenced this pull request Feb 6, 2014
Fix uniq/uniq! with block for array slices.  Amazing find!   Next time please submit this PR against jruby-1_7 branch and not master (unless it is Ruby 2.0+ semantics then continue using master)
@enebo enebo merged commit 2c33dc2 into jruby:master Feb 6, 2014
@enebo enebo added this to the JRuby 1.7.11 milestone Feb 21, 2014
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.

uniq! returns nil when it is after a shifting operation.

2 participants