Skip to content

Commit

Permalink
use mod_floor instead of div_mod_floor (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidn authored Nov 12, 2021
1 parent 446b387 commit ab57404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/more_ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ lazy_static! {

fn mod_group_order(n: Number) -> Number {
let order = GROUP_ORDER.clone();
let (_q, mut remainder) = n.div_mod_floor(&order);
let mut remainder = n.mod_floor(&order);
if remainder.sign() == Sign::Minus {
remainder += order;
}
Expand Down

0 comments on commit ab57404

Please sign in to comment.