diff options
author | Cryptomental <cryptomental.com@gmail.com> | 2018-07-10 15:18:59 +0800 |
---|---|---|
committer | Cryptomental <cryptomental.com@gmail.com> | 2018-07-11 06:26:23 +0800 |
commit | 140dbfdbd8f4319d1d02339feea0a8636a3738e5 (patch) | |
tree | 7ab4a06da70cde7c253a1a0c82ccc085bf76efd5 /libsolidity/codegen/ExpressionCompiler.cpp | |
parent | 4116704442aff035acb5b707c6b211ac1f5524fe (diff) | |
download | dexon-solidity-140dbfdbd8f4319d1d02339feea0a8636a3738e5.tar dexon-solidity-140dbfdbd8f4319d1d02339feea0a8636a3738e5.tar.gz dexon-solidity-140dbfdbd8f4319d1d02339feea0a8636a3738e5.tar.bz2 dexon-solidity-140dbfdbd8f4319d1d02339feea0a8636a3738e5.tar.lz dexon-solidity-140dbfdbd8f4319d1d02339feea0a8636a3738e5.tar.xz dexon-solidity-140dbfdbd8f4319d1d02339feea0a8636a3738e5.tar.zst dexon-solidity-140dbfdbd8f4319d1d02339feea0a8636a3738e5.zip |
Code, Changelog, ReleaseChecklist: Fix typos.
Refs: #4442
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; } } |