Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Commit 7a285fe

Browse files
author
Jochen Buchholz
committed
Correct the multiplication tests
1 parent 8bdc67d commit 7a285fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/javamoney/moneta/FastMoney.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,10 +451,10 @@ public FastMoney multiply(Number multiplicand) {
451451

452452
private long multiplyExact(long num1, long num2) {
453453
if(num1==0){
454-
return num2;
454+
return 0;
455455
}
456456
if(num2==0){
457-
return num1;
457+
return 0;
458458
}
459459
boolean pos = num1>0 && num2 >0;
460460
boolean neg = num1<0 && num2 <0;

0 commit comments

Comments
 (0)