mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 13:16:42 +00:00
Improve Memory code formatting
This commit is contained in:
parent
3ee33cc699
commit
64513d5aaa
2 changed files with 35 additions and 35 deletions
|
|
@ -218,18 +218,18 @@ void Memory::dump(uint64_t _begin, uint64_t _end)
|
|||
extern "C"
|
||||
{
|
||||
|
||||
using namespace dev::eth::jit;
|
||||
using namespace dev::eth::jit;
|
||||
|
||||
EXPORT uint8_t* mem_resize(Runtime* _rt, i256* _size)
|
||||
{
|
||||
EXPORT uint8_t* mem_resize(Runtime* _rt, i256* _size)
|
||||
{
|
||||
auto size = _size->a; // Trunc to 64-bit
|
||||
auto& memory = _rt->getMemory();
|
||||
memory.resize(size);
|
||||
return memory.data();
|
||||
}
|
||||
}
|
||||
|
||||
EXPORT void evmccrt_memory_dump(uint64_t _begin, uint64_t _end)
|
||||
{
|
||||
EXPORT void evmccrt_memory_dump(uint64_t _begin, uint64_t _end)
|
||||
{
|
||||
//if (_end == 0)
|
||||
// _end = Runtime::getMemory().size();
|
||||
|
||||
|
|
@ -250,6 +250,6 @@ EXPORT void evmccrt_memory_dump(uint64_t _begin, uint64_t _end)
|
|||
// std::cerr << std::hex << std::setw(2) << static_cast<int>(b) << ' ';
|
||||
//}
|
||||
//std::cerr << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
} // extern "C"
|
||||
|
|
|
|||
Loading…
Reference in a new issue