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);