Fix debug builds

This commit is contained in:
Jason Turner
2015-06-19 20:59:40 -06:00
parent a2577b983c
commit a147278a7e

View File

@@ -749,8 +749,8 @@ namespace chaiscript
bool types_match_except_for_arithmetic(const FuncType &t_func, const std::vector<Boxed_Value> &plist, bool types_match_except_for_arithmetic(const FuncType &t_func, const std::vector<Boxed_Value> &plist,
const Type_Conversions &t_conversions) const Type_Conversions &t_conversions)
{ {
assert(plist.size() == types.size() - 1);
const std::vector<Type_Info> &types = t_func->get_param_types(); const std::vector<Type_Info> &types = t_func->get_param_types();
assert(plist.size() == types.size() - 1);
return std::mismatch(plist.begin(), plist.end(), return std::mismatch(plist.begin(), plist.end(),
types.begin()+1, types.begin()+1,