diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-10-04 12:49:05 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-10-04 12:49:05 -0300 |
| commit | 9ed9f40f1e3674f9ed7ffbe73c0c9718782fe6cd (patch) | |
| tree | e1947d5f9da7b515b5dc0af0341cc61a68f55ee7 | |
| parent | 940472c75cf8f1a31a267748e3164f539e289b54 (diff) | |
| download | lua-9ed9f40f1e3674f9ed7ffbe73c0c9718782fe6cd.tar.gz lua-9ed9f40f1e3674f9ed7ffbe73c0c9718782fe6cd.tar.bz2 lua-9ed9f40f1e3674f9ed7ffbe73c0c9718782fe6cd.zip | |
avoid warning about 'const'
| -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.43 2017/07/27 13:50:16 roberto Exp roberto $ | 2 | ** $Id: ltm.c,v 2.44 2017/09/27 18:59:08 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 | */ |
| @@ -169,7 +169,7 @@ void luaT_trybinTM (lua_State *L, const TValue *p1, const TValue *p2, | |||
| 169 | 169 | ||
| 170 | void luaT_trybiniTM (lua_State *L, const TValue *p1, int i2, | 170 | void luaT_trybiniTM (lua_State *L, const TValue *p1, int i2, |
| 171 | int inv, StkId res, TMS event) { | 171 | int inv, StkId res, TMS event) { |
| 172 | TValue aux; TValue *p2; | 172 | TValue aux; const TValue *p2; |
| 173 | setivalue(&aux, i2); | 173 | setivalue(&aux, i2); |
| 174 | if (inv) { /* arguments were exchanged? */ | 174 | if (inv) { /* arguments were exchanged? */ |
| 175 | p2 = p1; p1 = &aux; /* correct them */ | 175 | p2 = p1; p1 = &aux; /* correct them */ |
