From e2300ff65e380bfe1454d0ea42a88abeeb6b8911 Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Thu, 15 Dec 2016 17:30:17 +0100 Subject: [PATCH] bench: Use CDataStream.data() --- src/bench/verify_script.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bench/verify_script.cpp b/src/bench/verify_script.cpp index 91b8c4447..d5fdeb731 100644 --- a/src/bench/verify_script.cpp +++ b/src/bench/verify_script.cpp @@ -94,7 +94,7 @@ static void VerifyScriptBench(benchmark::State& state) txCredit.vout[0].scriptPubKey.data(), txCredit.vout[0].scriptPubKey.size(), txCredit.vout[0].nValue, - (const unsigned char*)&stream[0], stream.size(), 0, flags, nullptr); + (const unsigned char*)stream.data(), stream.size(), 0, flags, nullptr); assert(csuccess == 1); #endif }