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

Fix wrong macro for boolean to value conversion #4

Merged
merged 1 commit into from
Feb 28, 2022

Conversation

lthls
Copy link
Contributor

@lthls lthls commented Feb 28, 2022

This caused the function to always return a raw 0, which is neither true nor false so could be interpreted either way by the OCaml code.

This caused the function to always return a raw `0`, which is neither `true` nor `false` so could be interpreted either way by the OCaml code.
@dannywillems
Copy link
Owner

Thanks! Nice catch. Raising another problem which is wrong cases are not tested. Will add it.

@dannywillems dannywillems merged commit db1058d into dannywillems:master Feb 28, 2022
@dannywillems
Copy link
Owner

I added another fix over it, specifically for Fq12.zero. blst_fp12_in_group returns true for Fq12.zero, which is wrong.

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