Get rid of a C++ conversion and make it a static_cast

This commit is contained in:
Jason Turner
2010-11-12 23:19:30 +00:00
parent 811764e048
commit 5f661fad20

View File

@@ -382,7 +382,7 @@ namespace chaiscript
ss >> std::hex >> temp_int; ss >> std::hex >> temp_int;
std::ostringstream out_int; std::ostringstream out_int;
out_int << int(temp_int); out_int << static_cast<int>(temp_int);
AST_NodePtr t(new Int_AST_Node(out_int.str(), AST_Node_Type::Int, m_filename, prev_line, prev_col, m_line, m_col)); AST_NodePtr t(new Int_AST_Node(out_int.str(), AST_Node_Type::Int, m_filename, prev_line, prev_col, m_line, m_col));
m_match_stack.push_back(t); m_match_stack.push_back(t);
return true; return true;