added 'return' (when possible) to calls to error functions

This commit is contained in:
Roberto Ierusalimschy
2013-02-21 10:44:53 -03:00
parent b559aed2d3
commit a83ed55f1e
3 changed files with 7 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lcorolib.c,v 1.3 2011/08/23 17:24:34 roberto Exp roberto $
** $Id: lcorolib.c,v 1.4 2012/04/27 18:59:04 roberto Exp roberto $
** Coroutine Library
** See Copyright Notice in lua.h
*/
@@ -73,7 +73,7 @@ static int luaB_auxwrap (lua_State *L) {
lua_insert(L, -2);
lua_concat(L, 2);
}
lua_error(L); /* propagate error */
return lua_error(L); /* propagate error */
}
return r;
}