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

Do not assume interface numbers follow the slice indices. #134

Merged
merged 2 commits into from
Sep 13, 2024

Conversation

zagrodzki
Copy link
Collaborator

This is a continuation of
9ad5483 which tried to solve the problem of non-contiguous interface indices; this commit modifies another code path that had the same assumption.

This is a continuation of
9ad5483
which tried to solve the problem of non-contiguous interface indices;
this commit modifies another code path that had the same assumption.
@zagrodzki
Copy link
Collaborator Author

Addresses #128

config.go Outdated
if err != nil {
return nil, fmt.Errorf("descriptor of interface (%d, %d) in %s: %v", num, alt, c, err)
return nil, fmt.Errorf("descriptor of alternate setting %d fo interface %d in %s: %v", alt, num, c, err)
Copy link
Collaborator

Choose a reason for hiding this comment

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

typo: “fo interface” should probably be “of interface”?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

indeed, fixed

@zagrodzki zagrodzki merged commit e840be9 into master Sep 13, 2024
7 of 9 checks passed
@zagrodzki zagrodzki deleted the noncontiguous_interfaces branch September 13, 2024 18:43
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