diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-06-08 16:06:59 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-06-08 16:06:59 -0300 |
commit | 6f2b8e21c4ea9d730ccfe7e41bfc178704d1fc75 (patch) | |
tree | 8c95c0decfca59a1ad9b82f925ae8d3045f40220 /ltm.c | |
parent | c5dc521d654cbe9b04310a633e94dbcf1927e0f6 (diff) | |
download | lua-6f2b8e21c4ea9d730ccfe7e41bfc178704d1fc75.tar.gz lua-6f2b8e21c4ea9d730ccfe7e41bfc178704d1fc75.tar.bz2 lua-6f2b8e21c4ea9d730ccfe7e41bfc178704d1fc75.zip |
added 'const' to 'Proto*' when possible
Diffstat (limited to 'ltm.c')
-rw-r--r-- | ltm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltm.c,v 2.67 2018/04/04 14:23:41 roberto Exp roberto $ | 2 | ** $Id: ltm.c,v 2.68 2018/06/01 17:40:38 roberto Exp roberto $ |
3 | ** Tag methods | 3 | ** Tag methods |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -217,7 +217,7 @@ int luaT_callorderiTM (lua_State *L, const TValue *p1, int v2, | |||
217 | 217 | ||
218 | 218 | ||
219 | void luaT_adjustvarargs (lua_State *L, int nfixparams, CallInfo *ci, | 219 | void luaT_adjustvarargs (lua_State *L, int nfixparams, CallInfo *ci, |
220 | Proto *p) { | 220 | const Proto *p) { |
221 | int i; | 221 | int i; |
222 | int actual = cast_int(L->top - ci->func) - 1; /* number of arguments */ | 222 | int actual = cast_int(L->top - ci->func) - 1; /* number of arguments */ |
223 | int nextra = actual - nfixparams; /* number of extra arguments */ | 223 | int nextra = actual - nfixparams; /* number of extra arguments */ |