Skip to content

Fix loop variable in control value setting#271

Open
xkwy wants to merge 1 commit intotinyalsa:masterfrom
xkwy:patch-1
Open

Fix loop variable in control value setting#271
xkwy wants to merge 1 commit intotinyalsa:masterfrom
xkwy:patch-1

Conversation

@xkwy
Copy link

@xkwy xkwy commented Nov 29, 2025

No description provided.

Copilot AI review requested due to automatic review settings November 29, 2025 02:51
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a critical bug in the control value setting logic where a loop was using the wrong variable as its upper bound. When setting all control values to the same value, the loop should iterate over all control values (num_ctl_values) rather than the number of input values (num_values), which is always 1 in this code path.

  • Changed loop condition from num_values to num_ctl_values in the "set all values the same" code path

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

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