diff options
author | chriseth <chris@ethereum.org> | 2018-07-11 17:52:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-11 17:52:22 +0800 |
commit | 07910c80cb42a717212cf6b0a4c405eff20e6051 (patch) | |
tree | 7ab4a06da70cde7c253a1a0c82ccc085bf76efd5 /libsolidity/codegen/ExpressionCompiler.cpp | |
parent | d84976dc871a1fdfab233650b989af69e325bf2b (diff) | |
parent | 140dbfdbd8f4319d1d02339feea0a8636a3738e5 (diff) | |
download | dexon-solidity-07910c80cb42a717212cf6b0a4c405eff20e6051.tar dexon-solidity-07910c80cb42a717212cf6b0a4c405eff20e6051.tar.gz dexon-solidity-07910c80cb42a717212cf6b0a4c405eff20e6051.tar.bz2 dexon-solidity-07910c80cb42a717212cf6b0a4c405eff20e6051.tar.lz dexon-solidity-07910c80cb42a717212cf6b0a4c405eff20e6051.tar.xz dexon-solidity-07910c80cb42a717212cf6b0a4c405eff20e6051.tar.zst dexon-solidity-07910c80cb42a717212cf6b0a4c405eff20e6051.zip |
Merge pull request #4462 from cryptomental/feature/add-codespell
Feature/add codespell
Diffstat (limited to 'libsolidity/codegen/ExpressionCompiler.cpp')
-rw-r--r-- | libsolidity/codegen/ExpressionCompiler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/codegen/ExpressionCompiler.cpp b/libsolidity/codegen/ExpressionCompiler.cpp index 2e548e32..483faae4 100644 --- a/libsolidity/codegen/ExpressionCompiler.cpp +++ b/libsolidity/codegen/ExpressionCompiler.cpp @@ -1751,7 +1751,7 @@ void ExpressionCompiler::appendShiftOperatorCode(Token::Value _operator, Type co { if (c_valueSigned) // In the following assembly snippet, xor_mask will be zero, if value_to_shift is positive. - // Therefor xor'ing with xor_mask is the identity and the computation reduces to + // Therefore xor'ing with xor_mask is the identity and the computation reduces to // div(value_to_shift, exp(2, shift_amount)), which is correct, since for positive values // arithmetic right shift is dividing by a power of two (which, as a bitwise operation, results // in discarding bits on the right and filling with zeros from the left). @@ -1879,7 +1879,7 @@ void ExpressionCompiler::appendExternalFunctionCall( { m_context << u256(0); utils().fetchFreeMemoryPointer(); - // This touches too much, but that way we save some rounding arithmetics + // This touches too much, but that way we save some rounding arithmetic m_context << u256(retSize) << Instruction::ADD << Instruction::MSTORE; } } |