From: RĂ©mi Duraffort Date: Sun, 26 Sep 2010 19:08:13 +0000 (+0200) Subject: lua: fix fonction prototype (should return a boolean). X-Git-Tag: 1.2.0-pre1~5208 X-Git-Url: https://git.sesse.net/?p=vlc;a=commitdiff_plain;h=ade1b3cb6bd4dfd5e3eef3c811cd1b276e415eb0 lua: fix fonction prototype (should return a boolean). --- diff --git a/modules/misc/lua/vlc.h b/modules/misc/lua/vlc.h index 71dfcc7811..ff3d4da6eb 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 );