From 82129b92662d43e1a49cb63f5e42f01d098d21cf Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 26 Oct 2015 12:27:47 -0200 Subject: use macro 'hasjumps' to test whether expression has jumps... --- lcode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lcode.c b/lcode.c index f128fb01..4bf0c8ef 100644 --- a/lcode.c +++ b/lcode.c @@ -1,5 +1,5 @@ /* -** $Id: lcode.c,v 2.100 2015/03/28 19:14:47 roberto Exp roberto $ +** $Id: lcode.c,v 2.101 2015/04/29 18:24:11 roberto Exp roberto $ ** Code generator for Lua ** See Copyright Notice in lua.h */ @@ -37,7 +37,7 @@ static int tonumeral(expdesc *e, TValue *v) { - if (e->t != NO_JUMP || e->f != NO_JUMP) + if (hasjumps(e)) return 0; /* not a numeral */ switch (e->k) { case VKINT: -- cgit v1.2.3-55-g6feb