mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Even numbers of hex digits for Jeff (Go can't handle odd numbers).
Everything a string in VM tests.
This commit is contained in:
parent
d66fa9211f
commit
b3088a69f3
13
vm.cpp
13
vm.cpp
@ -154,17 +154,17 @@ public:
|
||||
|
||||
static void push(mObject& o, string const& _n, u256 _v)
|
||||
{
|
||||
if (_v < (u256)1 << 64)
|
||||
o[_n] = (uint64_t)_v;
|
||||
else
|
||||
// if (_v < (u256)1 << 64)
|
||||
// o[_n] = (uint64_t)_v;
|
||||
// else
|
||||
o[_n] = toString(_v);
|
||||
}
|
||||
|
||||
static void push(mArray& a, u256 _v)
|
||||
{
|
||||
if (_v < (u256)1 << 64)
|
||||
a.push_back((uint64_t)_v);
|
||||
else
|
||||
// if (_v < (u256)1 << 64)
|
||||
// a.push_back((uint64_t)_v);
|
||||
// else
|
||||
a.push_back(toString(_v));
|
||||
}
|
||||
|
||||
@ -405,6 +405,7 @@ void doTests(json_spirit::mValue& v, bool _fillin)
|
||||
|
||||
if (_fillin)
|
||||
{
|
||||
o["env"] = mValue(fev.exportEnv());
|
||||
o["exec"] = mValue(fev.exportExec());
|
||||
o["post"] = mValue(fev.exportState());
|
||||
o["callcreates"] = fev.exportCallCreates();
|
||||
|
Loading…
Reference in New Issue
Block a user