/// Convert a signed integer into the corresponding field element
Convert a signed integer into the corresponding field element
Convert a signed integer into the corresponding field element
pub fn int_to_fr(num: i32) -> Fr {
    if num >= 0 {
        uint_to_fr(num as u32)
    } else {
        let mut ans = Fr::zero();
        ans.sub_assign(&uint_to_fr((-num) as u32));
        ans
    }
}
pub fn int_to_fr ( num : i32 ) -> Fr { if num >= 0 { uint_to_fr ( num as u32 ) } else { let mut ans = Fr :: zero ( ) ; ans . sub_assign ( & uint_to_fr ( ( - num ) as u32 ) ) ; ans } }
Convert a signed integer into the corresponding field element
Convert a signed integer into the corresponding field element
num
i32