Skip to content

fix: correct argument index usage in assignArgumentBitRatio - #846

Merged
fuzzie360 merged 1 commit into
gpujs:developfrom
ChenZhuoSteve:assignArgumentBitRatioFix
Jul 22, 2026
Merged

fuzzie360 merged 1 commit into
gpujs:developfrom
ChenZhuoSteve:assignArgumentBitRatioFix

Conversation

@ChenZhuoSteve

Copy link
Copy Markdown

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

ChenZhuoSteve commented Jun 5, 2025 •

Copy link
Copy Markdown
Author

this is only a issues if the argumentTypes parameter is declared

@fuzzie360
fuzzie360 merged commit 8e83607 into gpujs:develop Jul 22, 2026
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