Skip to content

fix: cast i32 to u32 first for zero ext#138

Merged
qmonnet merged 1 commit into
qmonnet:mainfrom
hsqStephenZhang:fix/i32_cast
Feb 5, 2026
Merged

fix: cast i32 to u32 first for zero ext#138
qmonnet merged 1 commit into
qmonnet:mainfrom
hsqStephenZhang:fix/i32_cast

Conversation

@hsqStephenZhang

Copy link
Copy Markdown
Contributor

Should cast i32 value to u32 first for zero extension.

The fix is quite straight forward, the test cases are added. It will panic before the fix.

@qmonnet qmonnet left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Looks good, thanks for the fix, and for the tests!

Can you please sign-off your commit?

Signed-off-by: hsqStephenZhang <stephenzhang666666@gmail.com>
@hsqStephenZhang

Copy link
Copy Markdown
Contributor Author

Looks good, thanks for the fix, and for the tests!

Can you please sign-off your commit?

Done.

@qmonnet qmonnet left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thank you!

@qmonnet qmonnet merged commit 2f99865 into qmonnet:main Feb 5, 2026
7 of 8 checks passed
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