gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated: oops, fix multiplication


From: gnunet
Subject: [taler-wallet-core] branch master updated: oops, fix multiplication
Date: Mon, 11 May 2020 15:07:18 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new 0240096c oops, fix multiplication
0240096c is described below

commit 0240096cf663df982f0f3e0b9d46407ae7965c96
Author: Florian Dold <address@hidden>
AuthorDate: Mon May 11 18:37:10 2020 +0530

    oops, fix multiplication
---
 src/util/amounts.ts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/util/amounts.ts b/src/util/amounts.ts
index d962b6cb..cdb98b0f 100644
--- a/src/util/amounts.ts
+++ b/src/util/amounts.ts
@@ -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) {

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]