Fix crash for too large struct array indicies

This commit is contained in:
Mathias Baumann
2019-02-06 11:50:25 +01:00
parent d3820aa833
commit 9f431339ef
3 changed files with 26 additions and 8 deletions
@@ -0,0 +1,10 @@
contract test {
struct s { uint a; uint b;}
function f() pure public returns (byte) {
s[75555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555];
s[7];
}
}
// ----
// TypeError: (101-241): Type int_const 7555...(132 digits omitted)...5555 is not implicitly convertible to expected type uint256.