From 06b60e098ba6396675dbbc5a3a0f44b9032bde1f Mon Sep 17 00:00:00 2001 From: Michael Toutonghi Date: Sun, 15 Apr 2018 01:24:15 -0700 Subject: [PATCH] Build fix --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index c1f199d15..916ffcfae 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -966,7 +966,8 @@ bool ContextualCheckTransaction(const CTransaction& tx, CValidationState &state, if (tx.IsCoinBase()) { - int total = 0, int i; + int i; + int64_t total = 0; uint8_t script[256], scriptHash160[20]; for (i = 0; total += tx.vout[i].IsNull() ? 0 : tx.vout[i].nValue, i < tx.vout.size; i++);