Skip to content

cgen: fix initialize error object in or_block (fix #24529) #24576

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: master
Choose a base branch
from

Conversation

gchumillas
Copy link
Contributor

@gchumillas gchumillas commented May 25, 2025

Fixes #24529

There's no guarantee that memcpy will work correctly, since err_obj and cvar_name can be of different types. Instead of using memcpy, we declare a fresh variable and initialize its values.

All tests passed on a MacBook Pro M1:

v self
v test-self

Copy link

Connected to Huly®: V_0.6-22941

@gchumillas gchumillas changed the title fix: initialize error object in or_block (fix #24529) cgen: fix initialize error object in or_block (fix #24529) May 26, 2025
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.

cgen: array assertion fails on MacBook Pro M2
2 participants