]> git.sesse.net Git - vlc/commitdiff
lua: fix fonction prototype (should return a boolean).
authorRémi Duraffort <ivoire@videolan.org>
Sun, 26 Sep 2010 19:08:13 +0000 (21:08 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Wed, 29 Sep 2010 16:30:23 +0000 (18:30 +0200)
modules/misc/lua/vlc.h

index 71dfcc78114fb0d9f7d188f61b83def3c6e45e31..ff3d4da6eb58a97f5772fb04725e81e0880a4c32 100644 (file)
@@ -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 );