Merge pull request #7042 from ethereum/make-whiskers-fail-early

Make Whiskers fail early when called with int
This commit is contained in:
chriseth
2019-07-04 12:19:54 +02:00
committed by GitHub
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -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();