Skip to content
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

Remove use of implementation detail __compar_fn_t #353

Merged
merged 1 commit into from Sep 15, 2021

Conversation

TedLyngmo
Copy link
Contributor

TopK_List uses __compar_fn_t to cast cmpHeapBucket to the correct
signature and fails to compile using implementations without the
__compar_fn_t typedef. This patch makes that cast unnecessary.

Signed-off-by: Ted Lyngmo ted@lyncon.se

TopK_List uses __compar_fn_t to cast cmpHeapBucket to the correct
signature and fails to compile using implementations without the
__compar_fn_t typedef. This patch makes that cast unnecessary.

Signed-off-by: Ted Lyngmo <ted@lyncon.se>
@CLAassistant
Copy link

CLAassistant commented Sep 14, 2021

CLA assistant check
All committers have signed the CLA.

@codecov
Copy link

codecov bot commented Sep 14, 2021

Codecov Report

Merging #353 (b2467a2) into master (a435ae5) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #353      +/-   ##
==========================================
+ Coverage   85.60%   85.62%   +0.01%     
==========================================
  Files          10       10              
  Lines        1841     1843       +2     
==========================================
+ Hits         1576     1578       +2     
  Misses        265      265              

Copy link
Contributor

@ashtul ashtul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @TedLyngmo for this fix

@ashtul ashtul merged commit 100c48f into RedisBloom:master Sep 15, 2021
@TedLyngmo TedLyngmo deleted the no__compar_fn_t branch January 7, 2022 01:50
ashtul pushed a commit that referenced this pull request Feb 23, 2022
TopK_List uses __compar_fn_t to cast cmpHeapBucket to the correct
signature and fails to compile using implementations without the
__compar_fn_t typedef. This patch makes that cast unnecessary.

Signed-off-by: Ted Lyngmo <ted@lyncon.se>
(cherry picked from commit 100c48f)
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.

None yet

3 participants