Skip to content

Commit

Permalink
fix: add type casting in "endo" macro branch
Browse files Browse the repository at this point in the history
  • Loading branch information
duguorong009 committed Jan 19, 2024
1 parent 64ab44c commit 3238f4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tests/curve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ macro_rules! curve_testing_suite {
use rand_core::OsRng;

let z_impl = <$curve as CurveExt>::ScalarExt::ZETA;
let z_other = <$curve as CurveExt>::ScalarExt::from_raw($z_other_raw);
let z_other = <$curve as CurveExt>::ScalarExt::from_raw($z_other_raw as [u64; 4]);

assert_eq!(z_impl * z_impl + z_impl, -<$curve as CurveExt>::ScalarExt::ONE);
assert_eq!(z_other * z_other + z_other, -<$curve as CurveExt>::ScalarExt::ONE);
Expand Down

0 comments on commit 3238f4d

Please sign in to comment.