diff --git a/libs/luabind/luabind/detail/policy.hpp b/libs/luabind/luabind/detail/policy.hpp index 79577c9a4..e154507e4 100644 --- a/libs/luabind/luabind/detail/policy.hpp +++ b/libs/luabind/luabind/detail/policy.hpp @@ -142,11 +142,11 @@ namespace luabind { namespace detail { static const T& t; - BOOST_STATIC_CONSTANT(bool, value = + BOOST_STATIC_CONSTANT(bool, value = sizeof(is_policy_cons_test(t)) == sizeof(yes_t)); typedef boost::mpl::bool_ type; - }; + }; template struct is_string_literal @@ -160,7 +160,7 @@ namespace luabind { namespace detail { static no_t helper(indirection_layer); }; - + namespace mpl = boost::mpl; @@ -217,7 +217,7 @@ namespace luabind { namespace detail template void apply(lua_State* L, T* ptr) { - if (ptr == 0) + if (ptr == 0) { lua_pushnil(L); return; @@ -251,7 +251,7 @@ namespace luabind { namespace detail } template - void converter_postcall(lua_State*, by_pointer, int) + void converter_postcall(lua_State*, by_pointer, int) {} }; @@ -328,7 +328,7 @@ namespace luabind { namespace detail template void apply(lua_State* L, const T* ptr) { - if (ptr == 0) + if (ptr == 0) { lua_pushnil(L); return; @@ -472,7 +472,7 @@ namespace luabind { namespace detail { return 1; } - + void apply(lua_State* L, int val) { lua_pushnumber(L, val); @@ -483,7 +483,7 @@ namespace luabind { namespace detail { return static_cast(static_cast(lua_tonumber(L, index))); } - + template static int match(lua_State* L, by_value, int index) { @@ -532,7 +532,7 @@ namespace luabind { namespace detail template static int match(lua_State* L, by_const_reference, int index) { - return value_wrapper_traits::check(L, index) + return value_wrapper_traits::check(L, index) ? (std::numeric_limits::max)() / LUABIND_MAX_ARITY : -1; } @@ -694,9 +694,11 @@ LUABIND_NUMBER_CONVERTER(unsigned char, integer) LUABIND_NUMBER_CONVERTER(signed short, integer) LUABIND_NUMBER_CONVERTER(unsigned short, integer) LUABIND_NUMBER_CONVERTER(signed int, integer) +LUABIND_NUMBER_CONVERTER(signed long long, integer) LUABIND_NUMBER_CONVERTER(unsigned int, number) LUABIND_NUMBER_CONVERTER(unsigned long, number) +LUABIND_NUMBER_CONVERTER(unsigned long long, number) LUABIND_NUMBER_CONVERTER(signed long, integer) LUABIND_NUMBER_CONVERTER(float, number)