aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-09-25 11:48:32 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2014-09-25 11:48:33 +0200
commitb50e5fe099b3e9d8ece46b239ce930750df2120e (patch)
treed50310f107c8edf2668d0d7fc48a5bddad77c37f /src/test
parent375cb4c253091edea03d9df66b66a93c1040bd9c (diff)
parent219372f1dd504b0e187da88e3c0adf25a7e6b8d2 (diff)
Merge pull request #4968
219372f script: Fix reference into empty vector run time exception (ENikS)
Diffstat (limited to 'src/test')
-rw-r--r--src/test/base58_tests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/base58_tests.cpp b/src/test/base58_tests.cpp
index fe68e9e974..58fffb6df4 100644
--- a/src/test/base58_tests.cpp
+++ b/src/test/base58_tests.cpp
@@ -40,7 +40,7 @@ BOOST_AUTO_TEST_CASE(base58_EncodeBase58)
std::vector<unsigned char> sourcedata = ParseHex(test[0].get_str());
std::string base58string = test[1].get_str();
BOOST_CHECK_MESSAGE(
- EncodeBase58(&sourcedata[0], &sourcedata[sourcedata.size()]) == base58string,
+ EncodeBase58(begin_ptr(sourcedata), end_ptr(sourcedata)) == base58string,
strTest);
}
}