* error if the argument is not a "function".
* When no longer used, the ref must be released with hlua_unref()
*/
-__LJMP unsigned int hlua_checkfunction(lua_State *L, int argno)
+__LJMP int hlua_checkfunction(lua_State *L, int argno)
{
if (!lua_isfunction(L, argno)) {
const char *msg = lua_pushfstring(L, "function expected, got %s", luaL_typename(L, argno));
* error if the argument is not a "table".
* When no longer used, the ref must be released with hlua_unref()
*/
-__LJMP unsigned int hlua_checktable(lua_State *L, int argno)
+__LJMP int hlua_checktable(lua_State *L, int argno)
{
if (!lua_istable(L, argno)) {
const char *msg = lua_pushfstring(L, "table expected, got %s", luaL_typename(L, argno));