added debug assert

This commit is contained in:
Nicholas Ward 2021-07-27 12:34:47 -07:00
parent 34d59305a1
commit b66ad6c96a

View File

@ -22,9 +22,10 @@ pub(crate) struct ExponentiationGate<F: Extendable<D>, const D: usize> {
}
impl<F: Extendable<D>, const D: usize> ExponentiationGate<F, D> {
pub fn new(power_bits: usize) -> Self {
pub fn new(num_power_bits: usize) -> Self {
debug_assert!(num_power_bits < MAX_POWER_BITS);
Self {
num_power_bits: power_bits,
num_power_bits,
_phantom: PhantomData,
}
}