mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2025-12-22 00:44:30 +00:00
compiler compatibility fixes (clang, GCC 5, Intel 2016)
This commit is contained in:
@@ -411,7 +411,7 @@ void ExprNode::pushArg(ExprNode *node)
|
||||
// ExprNode operators //////////////////////////////////////////////////////////
|
||||
const ExprNode &ExprNode::operator[](const Index i) const
|
||||
{
|
||||
return *arg_[static_cast<unsigned int>(i)];
|
||||
return *arg_[i];
|
||||
}
|
||||
|
||||
ostream &Latan::operator<<(ostream &out, const ExprNode &n)
|
||||
@@ -451,7 +451,7 @@ try\
|
||||
}\
|
||||
catch (out_of_range)\
|
||||
{\
|
||||
address = static_cast<unsigned int>((table).size());\
|
||||
address = (table).size();\
|
||||
(table)[(name)] = address;\
|
||||
}\
|
||||
|
||||
@@ -582,7 +582,7 @@ MathInterpreter::MathInterpreter(const std::string &code)
|
||||
// access //////////////////////////////////////////////////////////////////////
|
||||
const Instruction * MathInterpreter::operator[](const Index i) const
|
||||
{
|
||||
return program_[static_cast<unsigned int>(i)].get();
|
||||
return program_[i].get();
|
||||
}
|
||||
|
||||
const ExprNode * MathInterpreter::getAST(void) const
|
||||
|
||||
Reference in New Issue
Block a user