From d86f5ad4499e6cf655748fedbf3bd09abaea1a0f Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 13 Apr 2020 00:38:09 -0400 Subject: Use ConstBytePtr and BytePtrSize in test --- validat4.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'validat4.cpp') diff --git a/validat4.cpp b/validat4.cpp index 18bd7f0a..e41c1c8b 100644 --- a/validat4.cpp +++ b/validat4.cpp @@ -1558,7 +1558,7 @@ bool ValidateEncoder() decoder.IsolatedInitialize(dparams); decoder.Detach(new StringSink(str2)); - decoder.Put((const byte*) str1.data(), str1.size()); + decoder.Put(ConstBytePtr(str1), BytePtrSize(str1)); decoder.MessageEnd(); pass = (str1 == std::string(expected)) && pass; -- cgit v1.2.1