aboutsummaryrefslogtreecommitdiffstats
path: root/solidityExpressionCompiler.cpp
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-11-03 23:29:55 +0800
committerChristian <c@ethdev.com>2014-11-03 23:30:11 +0800
commitbfb2ae9f3c6fd4c66fef5acef9c09e2ca49159e4 (patch)
treee1a2ed823ff27a531b902dcae9e24ca0cf4e2779 /solidityExpressionCompiler.cpp
parent8a9da8648d7eeeab5dc7951d76b5c8595badef5e (diff)
downloaddexon-solidity-bfb2ae9f3c6fd4c66fef5acef9c09e2ca49159e4.tar
dexon-solidity-bfb2ae9f3c6fd4c66fef5acef9c09e2ca49159e4.tar.gz
dexon-solidity-bfb2ae9f3c6fd4c66fef5acef9c09e2ca49159e4.tar.bz2
dexon-solidity-bfb2ae9f3c6fd4c66fef5acef9c09e2ca49159e4.tar.lz
dexon-solidity-bfb2ae9f3c6fd4c66fef5acef9c09e2ca49159e4.tar.xz
dexon-solidity-bfb2ae9f3c6fd4c66fef5acef9c09e2ca49159e4.tar.zst
dexon-solidity-bfb2ae9f3c6fd4c66fef5acef9c09e2ca49159e4.zip
Test adjustments.
Diffstat (limited to 'solidityExpressionCompiler.cpp')
-rw-r--r--solidityExpressionCompiler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/solidityExpressionCompiler.cpp b/solidityExpressionCompiler.cpp
index 043a6949..561cc3bd 100644
--- a/solidityExpressionCompiler.cpp
+++ b/solidityExpressionCompiler.cpp
@@ -177,7 +177,7 @@ BOOST_AUTO_TEST_CASE(short_circuiting)
byte(eth::Instruction::GT),
byte(eth::Instruction::ISZERO), // after this we have 10 + 8 >= 4
byte(eth::Instruction::DUP1),
- byte(eth::Instruction::PUSH1), 0x15,
+ byte(eth::Instruction::PUSH1), 0x14,
byte(eth::Instruction::JUMPI), // short-circuit if it is true
byte(eth::Instruction::POP),
byte(eth::Instruction::PUSH1), 0x2,
@@ -320,13 +320,13 @@ BOOST_AUTO_TEST_CASE(function_call)
{{"test", "f", "a"}, {"test", "f", "b"}});
// Stack: a, b
- bytes expectation({byte(eth::Instruction::PUSH1), 0x0b,
+ bytes expectation({byte(eth::Instruction::PUSH1), 0x0a,
byte(eth::Instruction::DUP3),
byte(eth::Instruction::PUSH1), 0x01,
byte(eth::Instruction::ADD),
// Stack here: a b <ret label> (a+1)
byte(eth::Instruction::DUP3),
- byte(eth::Instruction::PUSH1), 0x15,
+ byte(eth::Instruction::PUSH1), 0x14,
byte(eth::Instruction::JUMP),
byte(eth::Instruction::JUMPDEST),
// Stack here: a b g(a+1, b)