Skip to content

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.
Added test code.

@ChenZhuoSteve
Copy link
Author

ChenZhuoSteve commented Jun 5, 2025

this is only a issues if the argumentTypes parameter is declared

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