From e4076fe6d9d920e8e9acd4e979c61168de8abec1 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 5 May 2011 13:18:53 -0300 Subject: [PATCH] break long assertion in two shorter ones --- ltests.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ltests.c b/ltests.c index 888a3c48..522b20c2 100644 --- a/ltests.c +++ b/ltests.c @@ -1,5 +1,5 @@ /* -** $Id: ltests.c,v 2.115 2010/12/10 13:40:22 roberto Exp roberto $ +** $Id: ltests.c,v 2.116 2011/04/08 19:17:36 roberto Exp roberto $ ** Internal Module for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -215,7 +215,8 @@ static int testobjref (global_State *g, GCObject *f, GCObject *t) { static void checkvalref (global_State *g, GCObject *f, const TValue *t) { if (iscollectable(t)) { - lua_assert(righttt(t) && testobjref(g, f, gcvalue(t))); + lua_assert(righttt(t)); + lua_assert(testobjref(g, f, gcvalue(t))); } }