Skip to content

Fix signed version of radix_sort #3724

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

schnellerhase
Copy link
Contributor

@schnellerhase schnellerhase commented May 7, 2025

Fixes bug in radix_sort, reported by @jorgensd, for signed integers where bitwise comparison failed and resulted in either infinite loops or unsorted result.

Fixes it by radix sort only working on unsigned ints internally and inputs with signed getting shifted to corresponding unsigned int ranges.

@schnellerhase schnellerhase marked this pull request as ready for review May 7, 2025 13:21
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