Browse Source

Merge branch 'release-poc-3' into develop

cl-refactor
Gav Wood 11 years ago
parent
commit
68e728c909
  1. 1
      alethzero/MainWin.cpp
  2. 4
      libethereum/Instruction.cpp
  3. 2
      windows/LibEthereum.props

1
alethzero/MainWin.cpp

@ -148,6 +148,7 @@ QString Main::pretty(eth::Address _a) const
if (h256 n = state().contractMemory(m_nameReg, (h256)(u256)(u160)_a)) if (h256 n = state().contractMemory(m_nameReg, (h256)(u256)(u160)_a))
{ {
std::string s((char const*)n.data(), 32); std::string s((char const*)n.data(), 32);
if (s.find_first_of('\0') != string::npos)
s.resize(s.find_first_of('\0')); s.resize(s.find_first_of('\0'));
return QString::fromStdString(s); return QString::fromStdString(s);
} }

4
libethereum/Instruction.cpp

@ -499,7 +499,7 @@ static bool compileLispFragment(char const*& d, char const* e, bool _quiet, u256
while (d != e && compileLispFragment(d, e, _quiet, codes.back().first, codes.back().second)) while (d != e && compileLispFragment(d, e, _quiet, codes.back().first, codes.back().second))
codes.push_back(pair<u256s, vector<unsigned>>()); codes.push_back(pair<u256s, vector<unsigned>>());
codes.pop_back(); codes.pop_back();
int i = codes.size(); int i = (int)codes.size();
if (i > 2) if (i > 2)
cwarn << "Greater than two arguments given to binary operator" << t << "; using first two only."; cwarn << "Greater than two arguments given to binary operator" << t << "; using first two only.";
for (auto it = codes.rbegin(); it != codes.rend(); ++it) for (auto it = codes.rbegin(); it != codes.rend(); ++it)
@ -518,7 +518,7 @@ static bool compileLispFragment(char const*& d, char const* e, bool _quiet, u256
while (d != e && compileLispFragment(d, e, _quiet, codes.back().first, codes.back().second)) while (d != e && compileLispFragment(d, e, _quiet, codes.back().first, codes.back().second))
codes.push_back(pair<u256s, vector<unsigned>>()); codes.push_back(pair<u256s, vector<unsigned>>());
codes.pop_back(); codes.pop_back();
int i = codes.size(); int i = (int)codes.size();
if (i > 1) if (i > 1)
cwarn << "Greater than one argument given to unary operator" << t << "; using first only."; cwarn << "Greater than one argument given to unary operator" << t << "; using first only.";
for (auto it = codes.rbegin(); it != codes.rend(); ++it) for (auto it = codes.rbegin(); it != codes.rend(); ++it)

2
windows/LibEthereum.props

@ -10,7 +10,7 @@
</PropertyGroup> </PropertyGroup>
<ItemDefinitionGroup> <ItemDefinitionGroup>
<ClCompile> <ClCompile>
<DisableSpecificWarnings>4100;4127;4258;4505;4512;4706</DisableSpecificWarnings> <DisableSpecificWarnings>4068;4100;4127;4258;4505;4512;4706</DisableSpecificWarnings>
<WarningLevel>Level4</WarningLevel> <WarningLevel>Level4</WarningLevel>
<TreatWarningAsError>true</TreatWarningAsError> <TreatWarningAsError>true</TreatWarningAsError>
<MinimalRebuild>false</MinimalRebuild> <MinimalRebuild>false</MinimalRebuild>

Loading…
Cancel
Save