aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_cryptobox.cpp
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-06-29 13:11:23 +0200
committerSimon Warta <[email protected]>2015-06-30 10:38:23 +0200
commit8668ce8753b10e944bdc72b6e66d752759c7e710 (patch)
tree787e9829c871748b34594d35f3a5e6569ccdbb31 /src/tests/test_cryptobox.cpp
parentb90187419f64b6d38d19c888985d58f902336677 (diff)
tests: Convert &vec[0] to vec.data()
Diffstat (limited to 'src/tests/test_cryptobox.cpp')
-rw-r--r--src/tests/test_cryptobox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/test_cryptobox.cpp b/src/tests/test_cryptobox.cpp
index 74686a298..773360952 100644
--- a/src/tests/test_cryptobox.cpp
+++ b/src/tests/test_cryptobox.cpp
@@ -32,7 +32,7 @@ size_t test_cryptobox()
"secret password");
if(plaintext.size() != sizeof(msg) ||
- !same_mem(reinterpret_cast<const byte*>(&plaintext[0]), msg, sizeof(msg)))
+ !same_mem(reinterpret_cast<const byte*>(plaintext.data()), msg, sizeof(msg)))
++fails;
}