diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-05-05 13:18:53 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-05-05 13:18:53 -0300 |
commit | e4076fe6d9d920e8e9acd4e979c61168de8abec1 (patch) | |
tree | e08461e9e3b04d3a95da303f3c45962f2004f6b0 | |
parent | 81952e6884d7bff8d11282a63580e343bbbbc79a (diff) | |
download | lua-e4076fe6d9d920e8e9acd4e979c61168de8abec1.tar.gz lua-e4076fe6d9d920e8e9acd4e979c61168de8abec1.tar.bz2 lua-e4076fe6d9d920e8e9acd4e979c61168de8abec1.zip |
break long assertion in two shorter ones
-rw-r--r-- | ltests.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.c,v 2.115 2010/12/10 13:40:22 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 2.116 2011/04/08 19:17:36 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 | */ |
@@ -215,7 +215,8 @@ static int testobjref (global_State *g, GCObject *f, GCObject *t) { | |||
215 | 215 | ||
216 | static void checkvalref (global_State *g, GCObject *f, const TValue *t) { | 216 | static void checkvalref (global_State *g, GCObject *f, const TValue *t) { |
217 | if (iscollectable(t)) { | 217 | if (iscollectable(t)) { |
218 | lua_assert(righttt(t) && testobjref(g, f, gcvalue(t))); | 218 | lua_assert(righttt(t)); |
219 | lua_assert(testobjref(g, f, gcvalue(t))); | ||
219 | } | 220 | } |
220 | } | 221 | } |
221 | 222 | ||