Browse Source

Fixing Visual Studio compilation - these FeeStructure constants are weird

cl-refactor
Paweł Bylica 10 years ago
parent
commit
448e3141f6
  1. 6
      libevm/FeeStructure.cpp
  2. 4
      libevm/VM.cpp

6
libevm/FeeStructure.cpp

@ -31,6 +31,12 @@ namespace dev
namespace eth namespace eth
{ {
#ifndef _MSC_VER
uint32_t const FeeStructure::c_memoryGas;
uint32_t const FeeStructure::c_txDataGas;
uint32_t const FeeStructure::c_txGas;
#endif
uint32_t FeeStructure::getInstructionFee(Instruction _inst) uint32_t FeeStructure::getInstructionFee(Instruction _inst)
{ {
switch (_inst) switch (_inst)

4
libevm/VM.cpp

@ -25,10 +25,6 @@ using namespace std;
using namespace dev; using namespace dev;
using namespace dev::eth; using namespace dev::eth;
uint32_t const dev::eth::FeeStructure::c_memoryGas;
uint32_t const dev::eth::FeeStructure::c_txDataGas;
uint32_t const dev::eth::FeeStructure::c_txGas;
void VM::reset(u256 _gas) void VM::reset(u256 _gas)
{ {
m_gas = _gas; m_gas = _gas;

Loading…
Cancel
Save