From 6e8e695bc8812112559d5a9c6ab7cef5a7b47579 Mon Sep 17 00:00:00 2001 From: dimxy Date: Sat, 27 Apr 2019 17:29:41 +0500 Subject: [PATCH] comment corrected --- src/cc/prices.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cc/prices.cpp b/src/cc/prices.cpp index a07267bf3..3584190f0 100644 --- a/src/cc/prices.cpp +++ b/src/cc/prices.cpp @@ -1337,7 +1337,7 @@ UniValue PricesInfo(uint256 bettxid, int32_t refheight) for (auto b : bets) { totalbets += b.amount; totalprofits += b.profits; - costbasis += b.amount * (b.costbasis / PRICES_NORMFACTOR); // prevent overflow + costbasis += b.amount * (b.costbasis / PRICES_NORMFACTOR); // prevent int64 overflow std::cerr << "PricesInfo() acc costbasis=" << costbasis << " b.amount=" << b.amount << " b.costbasis/PRICES_NORMFACTOR=" << (b.costbasis / PRICES_NORMFACTOR) << std::endl; }