Skip to content

fix: restrict constants in field emulation to width#518

Merged
ivokub merged 2 commits intodevelopfrom
fix/test-engine-limb-restrict
Mar 3, 2023
Merged

fix: restrict constants in field emulation to width#518
ivokub merged 2 commits intodevelopfrom
fix/test-engine-limb-restrict

Conversation

@ivokub
Copy link
Copy Markdown
Collaborator

@ivokub ivokub commented Mar 3, 2023

Closes #484.

@ivokub ivokub added the type: bug Something isn't working label Mar 3, 2023
@ivokub ivokub added this to the v0.9.0 milestone Mar 3, 2023
@ivokub ivokub requested a review from gbotrel March 3, 2023 14:45
@ivokub ivokub self-assigned this Mar 3, 2023
Copy link
Copy Markdown
Collaborator

@gbotrel gbotrel left a comment

Choose a reason for hiding this comment

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

Non-blocking remarks;

  • utils.FromInterface don't mod-reduce the constant. I think we're fine but in case I missed a case where we are not... let me know :) .

@ivokub
Copy link
Copy Markdown
Collaborator Author

ivokub commented Mar 3, 2023

Non-blocking remarks;

  • utils.FromInterface don't mod-reduce the constant. I think we're fine but in case I missed a case where we are not... let me know :) .

Good point. But I think we are fine. If the user gets a panic if they are not supposed to, then they could reduce the constant by hand. Otherwise we would have to modify limbs of the method arguments and this may lead to unexpected behaviour.

@ivokub ivokub merged commit 34f3c2b into develop Mar 3, 2023
@ivokub ivokub deleted the fix/test-engine-limb-restrict branch March 3, 2023 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants