oops, fix multiplication

This commit is contained in:
Florian Dold 2020-05-11 18:37:10 +05:30
parent 21b5e6f206
commit 0240096cf6
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -349,6 +349,7 @@ function mult(a: AmountJson, n: number): Result {
n = n / 2;
r = add(acc, acc);
} else {
n = n - 1;
r = add(acc, a);
}
if (r.saturated) {