Minor cleanups, increment to 5.7.0

This commit is contained in:
Jason Turner
2015-03-21 20:56:28 -06:00
parent 976e4ec46c
commit 98e36ab836
2 changed files with 4 additions and 6 deletions

View File

@@ -87,7 +87,7 @@ set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/readme.md")
set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/description.txt")
set(CPACK_PACKAGE_VERSION_MAJOR 5)
set(CPACK_PACKAGE_VERSION_MINOR 6)
set(CPACK_PACKAGE_VERSION_MINOR 7)
set(CPACK_PACKAGE_VERSION_PATCH 0)
set(CPACK_PACKAGE_EXECUTABLES "chai;ChaiScript Eval")

View File

@@ -230,13 +230,11 @@ namespace chaiscript
std::vector<Boxed_Value> params;
if ((this->children.size() > 1)) {
const AST_Node &first_child(*(this->children[1]));
if (first_child.identifier == AST_Node_Type::Arg_List) {
for (const auto &child : first_child.children) {
params.reserve(this->children[1]->children.size());
for (const auto &child : this->children[1]->children) {
params.push_back(child->eval(t_ss));
}
}
}
fpp.save_params(params);