Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertasJ committed Nov 23, 2024
1 parent e943c00 commit 042bc41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/torin/src/values/size.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,15 +286,15 @@ impl<'a> DynamicCalculationEvaluator<'a> {
let prefix = self.parse_prefix()?;
let mut lhs = None;
// set to true so that the first value is multiplied and counts as normal syntax
let mut last_is_seperator = true;
let mut last_is_separator = true;

while let Some((rhs, seperator)) = self.parse_value() {
if last_is_seperator || seperator {
if last_is_separator || seperator {
lhs = Some(lhs.unwrap_or(1.0) * rhs);
} else {
return None;
}
last_is_seperator = seperator;
last_is_separator = seperator;
}
if let Some(prefix) = prefix {
match prefix {
Expand Down

0 comments on commit 042bc41

Please sign in to comment.