diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-25 23:00:36 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-25 23:00:36 +0800 |
commit | 51d6141f7ecec6bb09f6c12711017eb51bd9c22c (patch) | |
tree | 4e114ea8adff4aa29a57a9f66a506136663978ff | |
parent | 5c73a80418db42970c06959945cd0b5b413806f9 (diff) | |
download | dexon-solidity-51d6141f7ecec6bb09f6c12711017eb51bd9c22c.tar.gz dexon-solidity-51d6141f7ecec6bb09f6c12711017eb51bd9c22c.tar.zst dexon-solidity-51d6141f7ecec6bb09f6c12711017eb51bd9c22c.zip |
Mark to places fall-through
-rw-r--r-- | libsolidity/codegen/CompilerUtils.cpp | 1 | ||||
-rw-r--r-- | libsolidity/codegen/ExpressionCompiler.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/libsolidity/codegen/CompilerUtils.cpp b/libsolidity/codegen/CompilerUtils.cpp index a0fc5d55..146472f9 100644 --- a/libsolidity/codegen/CompilerUtils.cpp +++ b/libsolidity/codegen/CompilerUtils.cpp @@ -829,6 +829,7 @@ void CompilerUtils::convertType( break; } } + // fall-through default: // All other types should not be convertible to non-equal types. solAssert(_typeOnStack == _targetType, "Invalid type conversion requested."); diff --git a/libsolidity/codegen/ExpressionCompiler.cpp b/libsolidity/codegen/ExpressionCompiler.cpp index 639bfc32..45c2170c 100644 --- a/libsolidity/codegen/ExpressionCompiler.cpp +++ b/libsolidity/codegen/ExpressionCompiler.cpp @@ -1047,6 +1047,7 @@ bool ExpressionCompiler::visit(MemberAccess const& _memberAccess) if (!alsoSearchInteger) break; } + // fall-through case Type::Category::Integer: if (member == "balance") { |