Patch to fix a warning
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
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