Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

fix: Update FieldElement.num_bits() to return 1 for a zero field element #528

Closed
wants to merge 3 commits into from

Conversation

Sakapoi
Copy link
Contributor

@Sakapoi Sakapoi commented Sep 4, 2023

Description

Problem*

Resolves noir-lang/noir#4759

Summary*

num_bits function now returns 1 for a zero field element
Added test for num_bits function

Additional Context

PR Checklist*

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt on default settings.

@TomAFrench TomAFrench closed this Apr 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update FieldElement.num_bits() to return 1 for a zero field element.
2 participants