From 665a272e72b0c2b326a0fa06882fea363fc22bee Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 3 Jul 2019 02:02:05 -1100 Subject: [PATCH] Syntax --- src/komodo_nSPV.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/komodo_nSPV.h b/src/komodo_nSPV.h index 98048e1fb..668482560 100644 --- a/src/komodo_nSPV.h +++ b/src/komodo_nSPV.h @@ -82,7 +82,7 @@ int32_t iguana_rwequihdrvec(int32_t rwflag,uint8_t *serialized,uint16_t *vecsize if ( (vsize= *vecsizep) != 0 ) { if ( *ptrp == 0 ) - *ptrp = calloc(sizeof(**ptrp),vsize); // relies on uint16_t being "small" to prevent mem exhaustion + *ptrp = (struct NSPV_equihdr *)calloc(sizeof(**ptrp),vsize); // relies on uint16_t being "small" to prevent mem exhaustion for (i=0; inumutxos= (int32_t)unspentOutputs.size()) > 0 ) { tipheight = chainActive.LastTip()->GetHeight(); - ptr->utxos = calloc(ptr->numutxos,sizeof(*ptr->utxos)); + ptr->utxos = (struct NSPV_utxoresp *)calloc(ptr->numutxos,sizeof(*ptr->utxos)); for (std::vector >::const_iterator it=unspentOutputs.begin(); it!=unspentOutputs.end(); it++) { ptr->utxos[n].txid = it->first.txhash;