Skip to content

Conversation

@daviesrob
Copy link
Member

For some reason, early versions of clang incorrectly optimised a check to ensure that the number of buckets in a resized hash table will still fit in a khint_t, with the result that most of the function was replaced by "return -2". Fix by putting the limit value in a separate variable, so the comparison part no longer needs to do any type conversion.

For some reason, early versions of clang incorrectly optimised a
check to ensure that the number of buckets in a resized hash table
will still fit in a khint_t, with the result that most of the
function was replaced by "return -2".  Fix by putting the limit
value in a separate variable, so the comparison part no longer
needs to do any type conversion.
@whitwham whitwham merged commit ee4301e into samtools:develop Dec 11, 2025
9 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.

2 participants