Fix some of the 64bit VS warnings.
This commit is contained in:
@@ -453,7 +453,7 @@ namespace chaiscript
|
||||
{
|
||||
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]);
|
||||
@@ -470,7 +470,7 @@ namespace chaiscript
|
||||
{
|
||||
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]);
|
||||
|
@@ -416,7 +416,7 @@ namespace chaiscript
|
||||
|
||||
virtual int get_arity() const
|
||||
{
|
||||
return m_types.size() - 1;
|
||||
return static_cast<int>(m_types.size()) - 1;
|
||||
}
|
||||
|
||||
|
||||
|
@@ -105,7 +105,7 @@ namespace chaiscript
|
||||
{
|
||||
if (params.size() != n)
|
||||
{
|
||||
throw arity_error(params.size(), n);
|
||||
throw arity_error(static_cast<int>(params.size()), n);
|
||||
} else {
|
||||
return f(BOOST_PP_REPEAT(n, casthelper, ~));
|
||||
}
|
||||
|
Reference in New Issue
Block a user