mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-18 12:40:38 +00:00
feat: Wasm Module Versioning
This commit is contained in:
@@ -822,7 +822,7 @@ readLEB128(Bytes const& wasmCode, size_t& offset)
|
||||
while (offset < wasmCode.size())
|
||||
{
|
||||
auto byte = wasmCode[offset++];
|
||||
result |= static_cast<uint32_t>(byte & 0x7F) << shift;
|
||||
result |= static_cast<uint32_t>(byte & (shift < 28 ? 0x7Fu : 0x0Fu)) << shift;
|
||||
if ((byte & 0x80) == 0)
|
||||
{
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user