Skip to content

The compare function should return false, for equal elements. #3141

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

Merged
merged 2 commits into from
Jun 23, 2021

Conversation

willyborn
Copy link
Contributor

When compiling in debug mode, the MSVC compiler returns an non-compliance error.
The provided method should simulate the '<' function, not '<='.

Description

bug fix, could result in increase sort time or even incorrect results.

Changes to Users

None

Checklist

  • Rebased on latest master
  • Code compiles
  • Tests pass
  • Functions added to unified API
  • Functions documented

Copy link
Member

@9prady9 9prady9 left a comment

Choose a reason for hiding this comment

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

@9prady9 9prady9 added this to the 3.8.1 milestone Jun 21, 2021
@9prady9
Copy link
Member

9prady9 commented Jun 22, 2021

@willyborn there is a merge commit in the PR commit history, please remove it.

@willyborn
Copy link
Contributor Author

I found an extra one in topk

@9prady9 9prady9 merged commit 77181f1 into arrayfire:master Jun 23, 2021
9prady9 pushed a commit to 9prady9/arrayfire that referenced this pull request Aug 2, 2021
…ire#3141)

* The compare function should return false, for equal elements.

When compiling in debug mode, the MSVC compiler returns an non-compliance error.

* compare functions should always return false when equal

(cherry picked from commit 77181f1)
syurkevi pushed a commit that referenced this pull request Dec 28, 2021
* The compare function should return false, for equal elements.

When compiling in debug mode, the MSVC compiler returns an non-compliance error.

* compare functions should always return false when equal

(cherry picked from commit 77181f1)
@willyborn willyborn deleted the sift-compare branch September 29, 2022 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants