mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #6112 from ethereum/fixYulrun
Fix signextend implementation
This commit is contained in:
commit
cc27d95be2
@ -169,7 +169,7 @@ u256 EVMInstructionInterpreter::eval(
|
||||
return arg[2] == 0 ? 0 : u256((u512(arg[0]) * u512(arg[1])) % arg[2]);
|
||||
case Instruction::SIGNEXTEND:
|
||||
if (arg[0] >= 31)
|
||||
return arg[0];
|
||||
return arg[1];
|
||||
else
|
||||
{
|
||||
unsigned testBit = unsigned(arg[0]) * 8 + 7;
|
||||
|
Loading…
Reference in New Issue
Block a user