fix: Fix error in calling of monic function

This commit is contained in:
Alivecow 2024-11-22 21:34:01 +01:00
parent 1b45c192b3
commit 1290adcd9b
2 changed files with 18 additions and 13 deletions

View file

@ -82,11 +82,11 @@ pub fn gfpoly_sort(args: &Value) -> Result<Vec<Polynomial>> {
}
pub fn gfpoly_make_monic(args: &Value) -> Result<Polynomial> {
let mut poly_a = Polynomial::from_c_array(&args["A"].clone());
let poly_a = Polynomial::from_c_array(&args["A"].clone());
poly_a.monic();
let result = poly_a.monic();
Ok(poly_a)
Ok(result)
}
pub fn gfpoly_sqrt(args: &Value) -> Result<Polynomial> {