Skip to content

fix(hyperlight-component-util): Fix emit_hl_unmarshal_value to return a tuple for boolean values #437

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

Draft
wants to merge 1 commit into
base: hyperlight-component-macro
Choose a base branch
from

Conversation

Mossaka
Copy link

@Mossaka Mossaka commented Apr 26, 2025

This updates the emit_hl_unmarshal_value function to return a tuple
containing the boolean value and a constant 1, which fixes the following
build error if a function that has a bool as its argument is called:

error[E0610]: `bool` is a primitive type and therefore doesn't have fields

Signed-off-by: Jiaxiao (mossaka) Zhou [email protected]

… a tuple for boolean values

This updates the emit_hl_unmarshal_value function to return a tuple
containing the boolean value and a constant 1, which fixes the following
build error if a function that has a bool as its argument is called:

```
error[E0610]: `bool` is a primitive type and therefore doesn't have fields
```

Signed-off-by: Jiaxiao (mossaka) Zhou <[email protected]>
@Mossaka Mossaka changed the title fix(hyperlight-component-util): Fix emit_hl_unmarshal_value to return a tuple for boolean values fix(hyperlight-component-util): Fix emit_hl_unmarshal_value to return a tuple for boolean values Apr 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.

1 participant