Fix some of the 64bit VS warnings.

This commit is contained in:
Jason Turner
2010-11-05 02:22:38 +00:00
parent b3dafa385e
commit 6a18862c79
3 changed files with 4 additions and 4 deletions

View File

@@ -453,7 +453,7 @@ namespace chaiscript
{ {
if (params.size() < 2) if (params.size() < 2)
{ {
throw arity_error(params.size(), 2); throw arity_error(static_cast<int>(params.size()), 2);
} }
Const_Proxy_Function f = boxed_cast<Const_Proxy_Function>(params[0]); Const_Proxy_Function f = boxed_cast<Const_Proxy_Function>(params[0]);
@@ -470,7 +470,7 @@ namespace chaiscript
{ {
if (params.size() < 1) if (params.size() < 1)
{ {
throw arity_error(params.size(), 1); throw arity_error(static_cast<int>(params.size()), 1);
} }
Const_Proxy_Function f = boxed_cast<Const_Proxy_Function>(params[0]); Const_Proxy_Function f = boxed_cast<Const_Proxy_Function>(params[0]);

View File

@@ -416,7 +416,7 @@ namespace chaiscript
virtual int get_arity() const virtual int get_arity() const
{ {
return m_types.size() - 1; return static_cast<int>(m_types.size()) - 1;
} }

View File

@@ -105,7 +105,7 @@ namespace chaiscript
{ {
if (params.size() != n) if (params.size() != n)
{ {
throw arity_error(params.size(), n); throw arity_error(static_cast<int>(params.size()), n);
} else { } else {
return f(BOOST_PP_REPEAT(n, casthelper, ~)); return f(BOOST_PP_REPEAT(n, casthelper, ~));
} }