Merge pull request #11737 from ethereum/fix_shift_cleanup

Yul: Fix cleanup for left shift of bytes types.
This commit is contained in:
chriseth
2021-08-05 12:55:42 +02:00
committed by GitHub
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -445,7 +445,7 @@ string YulUtilFunctions::typedShiftLeftFunction(Type const& _type, Type const& _
Whiskers(R"(
function <functionName>(value, bits) -> result {
bits := <cleanAmount>(bits)
result := <cleanup>(<shift>(bits, value))
result := <cleanup>(<shift>(bits, <cleanup>(value)))
}
)")
("functionName", functionName)