From 0016f0db51c2953d3a657b8e22f24a0e6b02611c Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 21 Oct 2016 19:15:43 -0300 Subject: [PATCH] test --- src/komodo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/komodo.h b/src/komodo.h index 6c243e6f8..23d53941e 100644 --- a/src/komodo.h +++ b/src/komodo.h @@ -278,7 +278,7 @@ uint64_t komodo_interest(uint64_t nValue,uint32_t nLockTime,uint32_t tiptime) { minutes = (tiptime - nLockTime) / 60; days = minutes / (24 * 60); - interest = (nValue * 5000000) / ((365 * 1000000 * 24 * 60) / minutes); + interest = (nValue * 5000000) / (((uint64_t)365 * 1000000 * 24 * 60) / minutes); fprintf(stderr,"komodo_interest %lld %.8f nLockTime.%u tiptime.%u minutes.%d days.%d interest %lld %.8f\n",(long long)nValue,(double)nValue/100000000.,nLockTime,tiptime,minutes,days,(long long)interest,(double)interest/100000000); } return(interest * 0);