add exponent operator

https://www.pivotaltracker.com/n/projects/1189488/stories/83746404
This commit is contained in:
Lu Guanqun
2015-02-10 23:39:13 +08:00
parent cf4144b702
commit d307b0914c
4 changed files with 24 additions and 4 deletions
+3
View File
@@ -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."));
}