diff --git a/CHANGELOG.md b/CHANGELOG.md index e9bfa6806..351953b47 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Pending - [\#772](https://github.com/arkworks-rs/algebra/pull/772) (`ark-ff`) Implementation of `mul` method for `BigInteger`. +- [\#794](https://github.com/arkworks-rs/algebra/pull/794) (`ark-ff`) Fix `wasm` compilation. ### Breaking changes diff --git a/ff/src/fields/models/fp/montgomery_backend.rs b/ff/src/fields/models/fp/montgomery_backend.rs index 45e9697c9..df4b0e3fe 100644 --- a/ff/src/fields/models/fp/montgomery_backend.rs +++ b/ff/src/fields/models/fp/montgomery_backend.rs @@ -368,7 +368,8 @@ pub trait MontConfig: 'static + Sync + Send + Sized { } #[inline] - #[unroll_for_loops(12)] + #[cfg_attr(not(target_family = "wasm"), unroll_for_loops(12))] + #[cfg_attr(target_family = "wasm", unroll_for_loops(6))] #[allow(clippy::modulo_one)] fn into_bigint(a: Fp, N>) -> BigInt { let mut tmp = a.0;