diff options
author | Liana Husikyan <liana@ethdev.com> | 2015-03-21 00:02:24 +0800 |
---|---|---|
committer | Liana Husikyan <liana@ethdev.com> | 2015-03-25 20:59:39 +0800 |
commit | e3ea90e997caf1d316252ad16ecb14c4d6163da5 (patch) | |
tree | c2ec90b16cacc0ad85e9aa20f5c6294a089bb873 /Types.cpp | |
parent | 011d95e7e348908b1027dea922a429517cdebf07 (diff) | |
download | dexon-solidity-e3ea90e997caf1d316252ad16ecb14c4d6163da5.tar.gz dexon-solidity-e3ea90e997caf1d316252ad16ecb14c4d6163da5.tar.zst dexon-solidity-e3ea90e997caf1d316252ad16ecb14c4d6163da5.zip |
added check for events and stat variables
Diffstat (limited to 'Types.cpp')
-rw-r--r-- | Types.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -748,14 +748,12 @@ TypePointer ArrayType::externalType() const return TypePointer(); if (m_isByteArray) return shared_from_this(); - if (!(m_baseType->externalType())) - { + if (!m_baseType->externalType()) return TypePointer(); - } - if (dynamic_cast<ArrayType const*>(m_baseType.get()) && m_baseType->isDynamicallySized()) + if (m_baseType->getCategory() == Category::Array && m_baseType->isDynamicallySized()) return TypePointer(); - if (m_baseType->isDynamicallySized()) + if (isDynamicallySized()) return std::make_shared<ArrayType>(Location::CallData, m_baseType->externalType()); else return std::make_shared<ArrayType>(Location::CallData, m_baseType->externalType(), m_length); |