Skip to content

Commit

Permalink
clip
Browse files Browse the repository at this point in the history
  • Loading branch information
kali committed Mar 28, 2024
1 parent 1b7de9e commit 44b54a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions data/src/dim/resolve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ pub fn solve_for(sym: &Symbol, left: &TDim, right: &TDim) -> Option<TDim> {
}
TDim::MulInt(z, a) => {
let gcd = right.gcd();
if gcd % z.abs() as u64 == 0 {
solve_for(sym, &a, &(right.clone() / *z))
if gcd % z.unsigned_abs() == 0 {
solve_for(sym, a, &(right.clone() / *z))
} else {
None
}
Expand Down
3 changes: 1 addition & 2 deletions data/src/dim/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -477,8 +477,7 @@ impl TDim {
if self == other {
return true;
}
let symbols: Vec<Symbol> =
self.symbols().union(&other.symbols()).into_iter().cloned().collect();
let symbols: Vec<Symbol> = self.symbols().union(&other.symbols()).cloned().collect();
if symbols.len() != 1 {
return false;
}
Expand Down

0 comments on commit 44b54a9

Please sign in to comment.