aboutsummaryrefslogtreecommitdiffstats
path: root/ExpressionCompiler.cpp
diff options
context:
space:
mode:
authorLu Guanqun <guanqun.lu@gmail.com>2015-02-08 19:23:17 +0800
committerLu Guanqun <guanqun.lu@gmail.com>2015-02-10 23:39:13 +0800
commitd307b0914c4425ffbdf312b270a5528868915667 (patch)
treeacd96e9f0412bc57efa78dfeb194ac5edfb68d3c /ExpressionCompiler.cpp
parentcf4144b70246b53589b3238213f688244485f9b0 (diff)
downloaddexon-solidity-d307b0914c4425ffbdf312b270a5528868915667.tar.gz
dexon-solidity-d307b0914c4425ffbdf312b270a5528868915667.tar.zst
dexon-solidity-d307b0914c4425ffbdf312b270a5528868915667.zip
add exponent operator
https://www.pivotaltracker.com/n/projects/1189488/stories/83746404
Diffstat (limited to 'ExpressionCompiler.cpp')
-rw-r--r--ExpressionCompiler.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/ExpressionCompiler.cpp b/ExpressionCompiler.cpp
index 1d3f23e6..beda0132 100644
--- a/ExpressionCompiler.cpp
+++ b/ExpressionCompiler.cpp
@@ -650,6 +650,9 @@ void ExpressionCompiler::appendArithmeticOperatorCode(Token::Value _operator, Ty
case Token::Mod:
m_context << (c_isSigned ? eth::Instruction::SMOD : eth::Instruction::MOD);
break;
+ case Token::Exp:
+ m_context << eth::Instruction::EXP;
+ break;
default:
BOOST_THROW_EXCEPTION(InternalCompilerError() << errinfo_comment("Unknown arithmetic operator."));
}