mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Consistently use size_t everywhere for runs/expectedExecutionsPerDeployment
This commit is contained in:
parent
a3c965b7de
commit
6d8ef71277
@ -243,7 +243,7 @@ void CompilerStack::setLibraries(std::map<std::string, util::h160> const& _libra
|
|||||||
m_libraries = _libraries;
|
m_libraries = _libraries;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CompilerStack::setOptimiserSettings(bool _optimize, unsigned _runs)
|
void CompilerStack::setOptimiserSettings(bool _optimize, size_t _runs)
|
||||||
{
|
{
|
||||||
OptimiserSettings settings = _optimize ? OptimiserSettings::standard() : OptimiserSettings::minimal();
|
OptimiserSettings settings = _optimize ? OptimiserSettings::standard() : OptimiserSettings::minimal();
|
||||||
settings.expectedExecutionsPerDeployment = _runs;
|
settings.expectedExecutionsPerDeployment = _runs;
|
||||||
|
@ -146,7 +146,7 @@ public:
|
|||||||
|
|
||||||
/// Changes the optimiser settings.
|
/// Changes the optimiser settings.
|
||||||
/// Must be set before parsing.
|
/// Must be set before parsing.
|
||||||
void setOptimiserSettings(bool _optimize, unsigned _runs = 200);
|
void setOptimiserSettings(bool _optimize, size_t _runs = 200);
|
||||||
|
|
||||||
/// Changes the optimiser settings.
|
/// Changes the optimiser settings.
|
||||||
/// Must be set before parsing.
|
/// Must be set before parsing.
|
||||||
|
Loading…
Reference in New Issue
Block a user