aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-12-12 00:50:14 +0800
committerGitHub <noreply@github.com>2018-12-12 00:50:14 +0800
commitb5deca03830cc79be38d6986dfe4673020e1ee01 (patch)
treec872d85fb3ce4ba9133171de4d26657fa888a5a0 /libsolidity
parent599760b6ab6129797767e6bccfd2a6e842014d80 (diff)
parentd80d324de7fa7eb79e21d1e6d7cbca4ba3eebcd0 (diff)
downloaddexon-solidity-b5deca03830cc79be38d6986dfe4673020e1ee01.tar.gz
dexon-solidity-b5deca03830cc79be38d6986dfe4673020e1ee01.tar.zst
dexon-solidity-b5deca03830cc79be38d6986dfe4673020e1ee01.zip
Merge pull request #4779 from ethereum/optimise-string-literals
Decide better in storing string literals as data
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/codegen/CompilerUtils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/codegen/CompilerUtils.cpp b/libsolidity/codegen/CompilerUtils.cpp
index 7d2ad9d2..259f1620 100644
--- a/libsolidity/codegen/CompilerUtils.cpp
+++ b/libsolidity/codegen/CompilerUtils.cpp
@@ -1205,7 +1205,7 @@ void CompilerUtils::storeStringData(bytesConstRef _data)
{
//@todo provide both alternatives to the optimiser
// stack: mempos
- if (_data.size() <= 128)
+ if (_data.size() <= 32)
{
for (unsigned i = 0; i < _data.size(); i += 32)
{