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

[sdf] Fix Sdf_Children<ChildPolicy>::Find to return correct value #3486

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

nvidia-jomiller
Copy link
Collaborator

In most cases, Sdf_Children::Find would return the incorrect value of 0 instead the size of _childNames. This would incorrectly index into the first element when a match was not found

Description of Change(s)

Link to proposal (if applicable)

Fixes Issue(s)

Checklist

[x] I have created this PR based on the dev branch

[x] I have followed the coding conventions

[x] I have added unit tests that exercise this functionality (Reference:
testing guidelines)

[x] I have verified that all unit tests pass with the proposed changes

[x] I have submitted a signed Contributor License Agreement (Reference:
Contributor License Agreement instructions)

In most cases, Sdf_Children<ChildPolicy>::Find would return the incorrect value of 0 instead the size of _childNames.
This would incorrectly index into the first element when a matching element was not found
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