diff options
author | Christian <c@ethdev.com> | 2014-11-05 04:29:36 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2014-11-06 09:36:39 +0800 |
commit | 04e7977ea13fcac51e274f867ec1cd664a723bc7 (patch) | |
tree | 03ff0d2b7a4e690e65b6046dea687f6542d69d55 /solidityCompiler.cpp | |
parent | 010710353a4097f5dc94e42130ce22e6f0c72beb (diff) | |
download | dexon-solidity-04e7977ea13fcac51e274f867ec1cd664a723bc7.tar dexon-solidity-04e7977ea13fcac51e274f867ec1cd664a723bc7.tar.gz dexon-solidity-04e7977ea13fcac51e274f867ec1cd664a723bc7.tar.bz2 dexon-solidity-04e7977ea13fcac51e274f867ec1cd664a723bc7.tar.lz dexon-solidity-04e7977ea13fcac51e274f867ec1cd664a723bc7.tar.xz dexon-solidity-04e7977ea13fcac51e274f867ec1cd664a723bc7.tar.zst dexon-solidity-04e7977ea13fcac51e274f867ec1cd664a723bc7.zip |
Type promotion fixes and tests.
Diffstat (limited to 'solidityCompiler.cpp')
-rw-r--r-- | solidityCompiler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/solidityCompiler.cpp b/solidityCompiler.cpp index 69d33133..192fd61a 100644 --- a/solidityCompiler.cpp +++ b/solidityCompiler.cpp @@ -119,10 +119,10 @@ BOOST_AUTO_TEST_CASE(different_argument_numbers) byte(Instruction::JUMPDEST), // beginning of g byte(Instruction::PUSH1), 0x0, byte(Instruction::DUP1), // initialized e and h - byte(Instruction::PUSH1), byte(0x20 + shift), // ret address - byte(Instruction::PUSH1), 0x1, - byte(Instruction::PUSH1), 0x2, - byte(Instruction::PUSH1), 0x3, + byte(Instruction::PUSH1), 0x29 + shift, // ret address + byte(Instruction::PUSH1), 0x1, byte(Instruction::PUSH1), 0xff, byte(Instruction::AND), + byte(Instruction::PUSH1), 0x2, byte(Instruction::PUSH1), 0xff, byte(Instruction::AND), + byte(Instruction::PUSH1), 0x3, byte(Instruction::PUSH1), 0xff, byte(Instruction::AND), byte(Instruction::PUSH1), byte(0x1 + shift), // stack here: ret e h 0x20 1 2 3 0x1 byte(Instruction::JUMP), |