Skip to content
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

Move subcomponent counter decrease operation outside of assert #187

Merged
merged 1 commit into from
Jun 27, 2023

Conversation

OBrezhniev
Copy link
Member

@OBrezhniev OBrezhniev commented Jun 10, 2023

In some cases asserts are disabled by cpp compiler and operation (subcomponent counter decrease) is not executed.

Fixes the problem with cpp witnesscalc reported here: 0xPolygonID/witnesscalc#4 (comment)

In general would be good to switch from asserts to exceptions I think.

@clararod9 clararod9 merged commit ac099d3 into master Jun 27, 2023
@clararod9
Copy link
Collaborator

Hi!

Thank you for your contribution and your suggestion :-)

@clararod9 clararod9 deleted the fix-counter-decrease-in-assert branch March 21, 2024 11:28
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