Skip to content

Commit ba1d080

Browse files
committed
Do not use C++11 std::vector.data()
std::vector.data() is a C++11 feature that makes my OSX build machine unhappy.
1 parent f507067 commit ba1d080

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rpcmining.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ Value getblocktemplate(const Array& params, bool fHelp)
307307
}
308308
entry.push_back(Pair("depends", deps));
309309

310-
int index_in_template = &tx - pblock->vtx.data();
310+
int index_in_template = i - 1;
311311
entry.push_back(Pair("fee", pblocktemplate->vTxFees[index_in_template]));
312312
entry.push_back(Pair("sigops", pblocktemplate->vTxSigOps[index_in_template]));
313313

0 commit comments

Comments
 (0)