aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/ABIDecoderTests.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-08-13 23:25:30 +0800
committerGitHub <noreply@github.com>2018-08-13 23:25:30 +0800
commitae8218543b91a98663ab98de3200a0eec2bfebe3 (patch)
tree142f8a34907ad0ebd79abfb18dedaac1fa4aa58c /test/libsolidity/ABIDecoderTests.cpp
parent463f4b0f35a9eb930a4cce164135d726c091c50e (diff)
parent7d7abeb1496dddfab7eb8705dbfc3d06284cf25d (diff)
downloaddexon-solidity-ae8218543b91a98663ab98de3200a0eec2bfebe3.tar
dexon-solidity-ae8218543b91a98663ab98de3200a0eec2bfebe3.tar.gz
dexon-solidity-ae8218543b91a98663ab98de3200a0eec2bfebe3.tar.bz2
dexon-solidity-ae8218543b91a98663ab98de3200a0eec2bfebe3.tar.lz
dexon-solidity-ae8218543b91a98663ab98de3200a0eec2bfebe3.tar.xz
dexon-solidity-ae8218543b91a98663ab98de3200a0eec2bfebe3.tar.zst
dexon-solidity-ae8218543b91a98663ab98de3200a0eec2bfebe3.zip
Merge pull request #4696 from ethereum/byteLiteralConversion
Disallow ambiguous implicit and explicit conversions from number literals to bytesXX
Diffstat (limited to 'test/libsolidity/ABIDecoderTests.cpp')
-rw-r--r--test/libsolidity/ABIDecoderTests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/libsolidity/ABIDecoderTests.cpp b/test/libsolidity/ABIDecoderTests.cpp
index 28f982c4..f91a4f85 100644
--- a/test/libsolidity/ABIDecoderTests.cpp
+++ b/test/libsolidity/ABIDecoderTests.cpp
@@ -792,8 +792,8 @@ BOOST_AUTO_TEST_CASE(return_dynamic_types_cross_call_advanced)
a = "1234567890123456789012345678901234567890";
b = uint(-1);
c = new bytes20[](4);
- c[0] = bytes20(1234);
- c[3] = bytes20(6789);
+ c[0] = bytes20(uint160(1234));
+ c[3] = bytes20(uint160(6789));
d = 0x1234;
}
function f() public returns (bytes memory, uint, bytes20[] memory, uint) {