Skip to content

fix: correct argument index usage in assignArgumentBitRatio #845

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

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

Conversation

ChenZhuoSteve
Copy link

fix: correct argument index usage in assignArgumentBitRatio

Previously, assignArgumentBitRatio incorrectly used the caller's argument index (i) to update the callee function's argumentBitRatios array. This could cause incorrect bit ratio assignment when the caller and callee functions have different argument orders. This commit fixes the bug by using the given callee argument index (argumentIndex) instead.

…mentBitRatio

The previous implementation incorrectly used the caller's argument index to update the callee's argumentBitRatios, which could cause mismatches if the parameter order differs. Now it uses the correct argumentIndex as intended.
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