diff --git a/src/libxrpl/tx/wasm/WasmiVM.cpp b/src/libxrpl/tx/wasm/WasmiVM.cpp index 3a325a74e6..53537683b6 100644 --- a/src/libxrpl/tx/wasm/WasmiVM.cpp +++ b/src/libxrpl/tx/wasm/WasmiVM.cpp @@ -804,7 +804,7 @@ namespace { struct CustomSection { std::string_view name; - std::span payload; + std::span payload; }; struct Version @@ -853,8 +853,8 @@ filterCustomSections(Bytes const& wasmCode, Filter&& filter) offset += size; size = nextSection - offset; - customSection.payload = std::span{ - reinterpret_cast(wasmCode.data()) + offset, size}; + customSection.payload = std::span{ + reinterpret_cast(wasmCode.data()) + offset, size}; if (filter(customSection)) { @@ -879,7 +879,7 @@ extractVersionInfo(Bytes const& wasmCode) Version{ .name = section.name, .version = std::string_view{ - reinterpret_cast(section.payload.data()), + section.payload.data(), section.payload.size()}}); }