Skip to content

Commit

Permalink
fix: use i64 instead of i32
Browse files Browse the repository at this point in the history
  • Loading branch information
GreasySlug committed Oct 16, 2023
1 parent 36b9f51 commit c036d3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/erg_common/ratio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ impl Ratio {
None => panic!("Something went wrong: {f} cannot compare"),
}
let limit = if let Some(limit) = limit {
if limit >= i32::MAX as u64 {
i32::MAX as u64
if limit >= i64::MAX as u64 {
i64::MAX as u64
} else {
limit
}
Expand Down

0 comments on commit c036d3e

Please sign in to comment.