Skip to content

Commit

Permalink
refactor (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Apr 11, 2022
1 parent 80719da commit 92fe564
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git-config/src/values.rs
Original file line number Diff line number Diff line change
Expand Up @@ -609,8 +609,8 @@ impl Integer {
None => Some(self.value),
Some(suffix) => match suffix {
IntegerSuffix::Kibi => self.value.checked_mul(1024),
IntegerSuffix::Mebi => self.value.checked_mul(1048576),
IntegerSuffix::Gibi => self.value.checked_mul(1073741824),
IntegerSuffix::Mebi => self.value.checked_mul(1024 * 1024),
IntegerSuffix::Gibi => self.value.checked_mul(1024 * 1024 * 1024),
},
}
}
Expand Down

0 comments on commit 92fe564

Please sign in to comment.