diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-06-18 11:25:26 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-06-18 11:25:26 -0300 |
commit | cbe05b48bbfe98b0aac3947a877a4d493f80ab63 (patch) | |
tree | 8e93947395dd5644449b42521374e129ffa9b39b | |
parent | e7f34ad395284b4ad2b53b092aa4576616ede7c5 (diff) | |
download | lua-cbe05b48bbfe98b0aac3947a877a4d493f80ab63.tar.gz lua-cbe05b48bbfe98b0aac3947a877a4d493f80ab63.tar.bz2 lua-cbe05b48bbfe98b0aac3947a877a4d493f80ab63.zip |
using 'lua_longassert' to avoid warnings
-rw-r--r-- | ltests.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.c,v 2.204 2015/03/13 16:24:50 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 2.205 2015/04/02 21:10:21 roberto Exp roberto $ |
3 | ** Internal Module for Debugging of the Lua Implementation | 3 | ** Internal Module for Debugging of the Lua Implementation |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -1350,7 +1350,7 @@ static struct X { int x; } x; | |||
1350 | else if EQ("tostring") { | 1350 | else if EQ("tostring") { |
1351 | const char *s = lua_tostring(L1, getindex); | 1351 | const char *s = lua_tostring(L1, getindex); |
1352 | const char *s1 = lua_pushstring(L1, s); | 1352 | const char *s1 = lua_pushstring(L1, s); |
1353 | lua_assert((s == NULL && s1 == NULL) || strcmp(s, s1) == 0); | 1353 | lua_longassert((s == NULL && s1 == NULL) || strcmp(s, s1) == 0); |
1354 | } | 1354 | } |
1355 | else if EQ("type") { | 1355 | else if EQ("type") { |
1356 | lua_pushstring(L1, luaL_typename(L1, getnum)); | 1356 | lua_pushstring(L1, luaL_typename(L1, getnum)); |