Skip to content

Fix inverted comparison in Picker::GetClosestNonpositive#126

Open
CodeReclaimers wants to merge 1 commit intodavideberly:masterfrom
CodeReclaimers:fix/picker-closest-nonpositive
Open

Fix inverted comparison in Picker::GetClosestNonpositive#126
CodeReclaimers wants to merge 1 commit intodavideberly:masterfrom
CodeReclaimers:fix/picker-closest-nonpositive

Conversation

@CodeReclaimers
Copy link
Contributor

GetClosestNonpositive uses closest < record.distanceToLinePoint which updates to farther records instead of closer ones. The sibling function GetClosestNonnegative correctly uses record.distanceToLinePoint < closest. Fixed to match.

🤖 Generated with Claude Code

The comparison `closest < record.distanceToLinePoint` finds the farthest
record instead of the closest. Fixed to match GetClosestNonnegative pattern.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant