1
0
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:
2016-04-07 20:10:47 +01:00
parent 19de6290d1
commit d1666a1e75
13 changed files with 68 additions and 95 deletions

View File

@@ -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