aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-10-16 00:14:14 +0800
committerchriseth <c@ethdev.com>2015-10-16 00:14:14 +0800
commit1d4219d43d2839c41e56307f9db04cc23d4741e5 (patch)
treea869be01ad40a760018f3cfbd71bb42bfa5fdf91 /libsolidity
parente21df35416169a6804f6019c2fbb487c74bad596 (diff)
downloaddexon-solidity-1d4219d43d2839c41e56307f9db04cc23d4741e5.tar
dexon-solidity-1d4219d43d2839c41e56307f9db04cc23d4741e5.tar.gz
dexon-solidity-1d4219d43d2839c41e56307f9db04cc23d4741e5.tar.bz2
dexon-solidity-1d4219d43d2839c41e56307f9db04cc23d4741e5.tar.lz
dexon-solidity-1d4219d43d2839c41e56307f9db04cc23d4741e5.tar.xz
dexon-solidity-1d4219d43d2839c41e56307f9db04cc23d4741e5.tar.zst
dexon-solidity-1d4219d43d2839c41e56307f9db04cc23d4741e5.zip
Some fixes taking other pull requests into account.
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/ExpressionCompiler.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/libsolidity/ExpressionCompiler.cpp b/libsolidity/ExpressionCompiler.cpp
index 909d3fe5..fde88a00 100644
--- a/libsolidity/ExpressionCompiler.cpp
+++ b/libsolidity/ExpressionCompiler.cpp
@@ -664,9 +664,8 @@ bool ExpressionCompiler::visit(FunctionCall const& _functionCall)
// stack: newLength storageSlot slotOffset
arguments[0]->accept(*this);
// stack: newLength storageSlot slotOffset argValue
- TypePointer type = arguments[0]->annotation().type;
- utils().convertType(*type, *arrayType->baseType());
- type = arrayType->baseType();
+ TypePointer type = arguments[0]->annotation().type->closestTemporaryType(arrayType->baseType());
+ utils().convertType(*arguments[0]->annotation().type, *type);
utils().moveToStackTop(1 + type->sizeOnStack());
utils().moveToStackTop(1 + type->sizeOnStack());
// stack: newLength argValue storageSlot slotOffset