Skip to content

Commit

Permalink
refactor(utils): replace 0n with this.zero
Browse files Browse the repository at this point in the history
re #253
  • Loading branch information
cedoor committed Apr 22, 2024
1 parent 36e6955 commit dbc7c70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/utils/src/f1-field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default class F1Field {
* @throws if 'a' is zero.
*/
inv(a: bigint): bigint {
if (a === 0n) {
if (a === this.zero) {
throw new Error("Zero has no inverse")
}

Expand Down

0 comments on commit dbc7c70

Please sign in to comment.