From 30affb885570033546ec6c8c713f50e87fd32880 Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Mon, 20 Sep 2010 12:47:25 +0000 Subject: [PATCH] Correct assertion that was causing clang (and any other debug build) to fail tests --- include/chaiscript/dispatchkit/proxy_functions.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/chaiscript/dispatchkit/proxy_functions.hpp b/include/chaiscript/dispatchkit/proxy_functions.hpp index ba190f5e..ac6ef430 100644 --- a/include/chaiscript/dispatchkit/proxy_functions.hpp +++ b/include/chaiscript/dispatchkit/proxy_functions.hpp @@ -289,7 +289,7 @@ namespace chaiscript : Proxy_Function_Base(std::vector()), m_f(t_f), m_args(t_args), m_arity(m_f->get_arity()<0?-1:(m_f->get_arity() - static_cast(m_args.size()))) { - assert(m_f->get_arity() >= static_cast(m_args.size())); + assert(m_f->get_arity() < 0 || m_f->get_arity() >= static_cast(m_args.size())); } virtual bool operator==(const Proxy_Function_Base &) const