mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #7042 from ethereum/make-whiskers-fail-early
Make Whiskers fail early when called with int
This commit is contained in:
commit
2e01816c6b
@ -85,6 +85,8 @@ public:
|
||||
std::string render() const;
|
||||
|
||||
private:
|
||||
// Prevent implicit cast to bool
|
||||
Whiskers& operator()(std::string _parameter, long long);
|
||||
void checkParameterValid(std::string const& _parameter) const;
|
||||
void checkParameterUnknown(std::string const& _parameter) const;
|
||||
|
||||
|
@ -655,7 +655,7 @@ string YulUtilFunctions::arrayConvertLengthToSize(ArrayType const& _type)
|
||||
</byteArray>
|
||||
})")
|
||||
("functionName", functionName)
|
||||
("elementSize", _type.location() == DataLocation::Memory ? baseType.memoryHeadSize() : baseType.calldataEncodedSize())
|
||||
("elementSize", to_string(_type.location() == DataLocation::Memory ? baseType.memoryHeadSize() : baseType.calldataEncodedSize()))
|
||||
("byteArray", _type.isByteArray())
|
||||
("mul", overflowCheckedIntMulFunction(*TypeProvider::uint256()))
|
||||
.render();
|
||||
|
Loading…
Reference in New Issue
Block a user