This commit is contained in:
Imbus 2024-04-21 22:12:21 +02:00
parent 99c8de87b1
commit a05b2fbeee
2 changed files with 4 additions and 4 deletions

View file

@ -23,8 +23,8 @@ public class IntWord extends Word {
return new IntWord(value - (Integer) other.getValue());
}
public Word multiply(Word value) {
return new IntWord(this.value * (Integer) value.getValue());
public Word multiply(Word other) {
return new IntWord(this.value * (Integer) other.getValue());
}
public Word divide(Word other) {

View file

@ -23,8 +23,8 @@ public class LongWord extends Word {
return new LongWord(value - (Long) other.getValue());
}
public Word multiply(Word value) {
return new LongWord(this.value * (Long) value.getValue());
public Word multiply(Word other) {
return new LongWord(this.value * (Long) other.getValue());
}
public Word divide(Word other) {