Browse Source

style

cl-refactor
CJentzsch 10 years ago
parent
commit
7269fe1065
  1. 14
      libevm/VM.h

14
libevm/VM.h

@ -173,15 +173,15 @@ template <class Ext> dev::bytesConstRef dev::eth::VM::go(Ext& _ext, OnOpFunc con
// These all operate on memory and therefore potentially expand it: // These all operate on memory and therefore potentially expand it:
case Instruction::MSTORE: case Instruction::MSTORE:
require(2); require(2);
newTempSize = (bigint)m_stack.back() + 32; newTempSize = (bigint)m_stack.back() + 32;
break; break;
case Instruction::MSTORE8: case Instruction::MSTORE8:
require(2); require(2);
newTempSize = (bigint)m_stack.back() + 1; newTempSize = (bigint)m_stack.back() + 1;
break; break;
case Instruction::MLOAD: case Instruction::MLOAD:
require(1); require(1);
newTempSize = (bigint)m_stack.back() + 32; newTempSize = (bigint)m_stack.back() + 32;
break; break;
case Instruction::RETURN: case Instruction::RETURN:
require(2); require(2);
@ -236,10 +236,10 @@ template <class Ext> dev::bytesConstRef dev::eth::VM::go(Ext& _ext, OnOpFunc con
case Instruction::CREATE: case Instruction::CREATE:
{ {
require(3); require(3);
u256 inOff = m_stack[m_stack.size() - 2]; u256 inOff = m_stack[m_stack.size() - 2];
u256 inSize = m_stack[m_stack.size() - 3]; u256 inSize = m_stack[m_stack.size() - 3];
newTempSize = (bigint)inOff + inSize; newTempSize = (bigint)inOff + inSize;
runGas = c_createGas; runGas = c_createGas;
break; break;
} }
case Instruction::EXP: case Instruction::EXP:

Loading…
Cancel
Save