Patch to fix a warning

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Patch to fix a warning

fuscated
Hello,

I'm sending you a patch to fix a warning on 64bit linux.
It looks like the mpl::size() function returns 'long int',
but the lua_concat function is taking 'int' for the second parameter.

Best regards,
Teodor


Index: luabind/detail/format_signature.hpp
===================================================================
--- luabind/detail/format_signature.hpp (revision 232)
+++ luabind/detail/format_signature.hpp (working copy)
@@ -139,7 +139,7 @@
     );
     lua_pushstring(L, ")");
 
-    lua_concat(L, mpl::size<Signature>() * 2 + 2);
+    lua_concat(L, static_cast<int>(mpl::size<Signature>()) * 2 + 2);
 }
 
 }} // namespace luabind::detail

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
luabind-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/luabind-user
Reply | Threaded
Open this post in threaded view
|

Re: Patch to fix a warning

Daniel Wallin
On Sat, Jun 12, 2010 at 12:31:36AM +0300, [hidden email] wrote:
> Hello,
>
> I'm sending you a patch to fix a warning on 64bit linux.
> It looks like the mpl::size() function returns 'long int',
> but the lua_concat function is taking 'int' for the second parameter.

Thanks, applied but not yet pushed.

--
Daniel Wallin
BoostPro Computing
http://www.boostpro.com

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
luabind-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/luabind-user