added 'const' to 'Proto*' when possible

This commit is contained in:
Roberto Ierusalimschy
2018-06-08 16:06:59 -03:00
parent c5dc521d65
commit 6f2b8e21c4
4 changed files with 24 additions and 23 deletions

4
ltm.c
View File

@@ -1,5 +1,5 @@
/*
** $Id: ltm.c,v 2.67 2018/04/04 14:23:41 roberto Exp roberto $
** $Id: ltm.c,v 2.68 2018/06/01 17:40:38 roberto Exp roberto $
** Tag methods
** See Copyright Notice in lua.h
*/
@@ -217,7 +217,7 @@ int luaT_callorderiTM (lua_State *L, const TValue *p1, int v2,
void luaT_adjustvarargs (lua_State *L, int nfixparams, CallInfo *ci,
Proto *p) {
const Proto *p) {
int i;
int actual = cast_int(L->top - ci->func) - 1; /* number of arguments */
int nextra = actual - nfixparams; /* number of extra arguments */