Correct assertion that was causing clang (and any other debug build) to fail tests

This commit is contained in:
Jason Turner
2010-09-20 12:47:25 +00:00
parent 22c2be835a
commit 30affb8855

View File

@@ -289,7 +289,7 @@ namespace chaiscript
: Proxy_Function_Base(std::vector<Type_Info>()), : Proxy_Function_Base(std::vector<Type_Info>()),
m_f(t_f), m_args(t_args), m_arity(m_f->get_arity()<0?-1:(m_f->get_arity() - static_cast<int>(m_args.size()))) m_f(t_f), m_args(t_args), m_arity(m_f->get_arity()<0?-1:(m_f->get_arity() - static_cast<int>(m_args.size())))
{ {
assert(m_f->get_arity() >= static_cast<int>(m_args.size())); assert(m_f->get_arity() < 0 || m_f->get_arity() >= static_cast<int>(m_args.size()));
} }
virtual bool operator==(const Proxy_Function_Base &) const virtual bool operator==(const Proxy_Function_Base &) const