Skip to content

Commit

Permalink
fixed a bug that caused rational modes not calculating properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Taskeren committed Jan 4, 2025
1 parent 84d54f8 commit 6510dac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public int getModifiedValue(int originalValue) {
record Rational(double multiplier) implements ValueModification {
@Override
public int getModifiedValue(int originalValue) {
return (int) multiplier * originalValue;
return (int) (multiplier * originalValue);
}
}
}

0 comments on commit 6510dac

Please sign in to comment.