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

fix: Remove panic when we divide 0/0 in quotient directive #437

Merged
merged 2 commits into from
Jul 17, 2023

Conversation

kevaundray
Copy link
Contributor

Description

A directive should ideally not panic when we are dividing zero by zero. The input is not trusted and should be constrained, so it is okay to return 0 when we have 0/0.

Related: noir-lang/noir#1802

Problem*

Resolves

Summary*

Additional Context

PR Checklist*

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

@kevaundray kevaundray marked this pull request as ready for review July 14, 2023 19:47
@kevaundray kevaundray requested a review from vezenovm July 14, 2023 19:47
@kevaundray kevaundray added this pull request to the merge queue Jul 17, 2023
Merged via the queue into master with commit 9c8ff64 Jul 17, 2023
12 checks passed
@kevaundray kevaundray mentioned this pull request Jul 17, 2023
@TomAFrench TomAFrench deleted the kw/fix-quotient-directive branch July 17, 2023 23:12
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.

2 participants