Improve Memory code formatting

This commit is contained in:
Paweł Bylica 2014-10-29 16:39:28 +01:00
parent 3ee33cc699
commit 64513d5aaa
2 changed files with 35 additions and 35 deletions

View file

@ -218,18 +218,18 @@ void Memory::dump(uint64_t _begin, uint64_t _end)
extern "C" 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 size = _size->a; // Trunc to 64-bit
auto& memory = _rt->getMemory(); auto& memory = _rt->getMemory();
memory.resize(size); memory.resize(size);
return memory.data(); 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) //if (_end == 0)
// _end = Runtime::getMemory().size(); // _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::hex << std::setw(2) << static_cast<int>(b) << ' ';
//} //}
//std::cerr << std::endl; //std::cerr << std::endl;
} }
} // extern "C" } // extern "C"