diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-05-24 10:47:11 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-05-24 10:47:11 -0300 |
| commit | a9dbc2d64129d54379192b240623b41d8705a465 (patch) | |
| tree | ed6c281e89e7d8cb018425eb8f41ac74a95090f9 | |
| parent | c25380c28da154b271d91543e61e27ae974e9ecc (diff) | |
| download | lua-a9dbc2d64129d54379192b240623b41d8705a465.tar.gz lua-a9dbc2d64129d54379192b240623b41d8705a465.tar.bz2 lua-a9dbc2d64129d54379192b240623b41d8705a465.zip | |
assert removed in 'luaO_arith'
(nobody calls it with L==NULL)
| -rw-r--r-- | lobject.c | 3 |
1 files changed, 1 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lobject.c,v 2.113 2016/12/22 13:08:50 roberto Exp roberto $ | 2 | ** $Id: lobject.c,v 2.114 2017/04/19 16:34:35 roberto Exp roberto $ |
| 3 | ** Some generic functions over Lua objects | 3 | ** Some generic functions over Lua objects |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -155,7 +155,6 @@ void luaO_arith (lua_State *L, int op, const TValue *p1, const TValue *p2, | |||
| 155 | } | 155 | } |
| 156 | } | 156 | } |
| 157 | /* could not perform raw operation; try metamethod */ | 157 | /* could not perform raw operation; try metamethod */ |
| 158 | lua_assert(L != NULL); /* should not fail when folding (compile time) */ | ||
| 159 | luaT_trybinTM(L, p1, p2, res, cast(TMS, (op - LUA_OPADD) + TM_ADD)); | 158 | luaT_trybinTM(L, p1, p2, res, cast(TMS, (op - LUA_OPADD) + TM_ADD)); |
| 160 | } | 159 | } |
| 161 | 160 | ||
