From ade1b3cb6bd4dfd5e3eef3c811cd1b276e415eb0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Duraffort?= Date: Sun, 26 Sep 2010 21:08:13 +0200 Subject: [PATCH] lua: fix fonction prototype (should return a boolean). --- modules/misc/lua/vlc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.39.2