mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2026-01-01 03:12:23 +08:00
Get rid of a C++ conversion and make it a static_cast
This commit is contained in:
parent
811764e048
commit
5f661fad20
@ -382,7 +382,7 @@ namespace chaiscript
|
||||
ss >> std::hex >> temp_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));
|
||||
m_match_stack.push_back(t);
|
||||
return true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user