[vlc-commits] commit: lua: fix fonction prototype (should return a boolean). ( Rémi Duraffort )

git at videolan.org git at videolan.org
Wed Sep 29 18:47:43 CEST 2010


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sun Sep 26 21:08:13 2010 +0200| [ade1b3cb6bd4dfd5e3eef3c811cd1b276e415eb0] | committer: Rémi Duraffort 

lua: fix fonction prototype (should return a boolean).

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ade1b3cb6bd4dfd5e3eef3c811cd1b276e415eb0
---

 modules/misc/lua/vlc.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/misc/lua/vlc.h b/modules/misc/lua/vlc.h
index 71dfcc7..ff3d4da 100644
--- a/modules/misc/lua/vlc.h
+++ b/modules/misc/lua/vlc.h
@@ -73,7 +73,7 @@ static inline void lua_Dbg( vlc_object_t * p_this, const char * ppz_fmt, ... )
 /*****************************************************************************
  * Functions that should be in lua ... but aren't for some obscure reason
  *****************************************************************************/
-static inline int luaL_checkboolean( lua_State *L, int narg )
+static inline bool luaL_checkboolean( lua_State *L, int narg )
 {
     luaL_checktype( L, narg, LUA_TBOOLEAN ); /* can raise an error */
     return lua_toboolean( L, narg );



More information about the vlc-commits mailing list