From 727ba5e0768db29c28eae2ae4d8b191f0cc0383b Mon Sep 17 00:00:00 2001 From: Ron Pedde Date: Mon, 8 Dec 2003 06:38:21 +0000 Subject: [PATCH] little more debug info -- fix cvar problem in debug --- src/playlist.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/playlist.c b/src/playlist.c index 4656dfc0..62d07705 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -233,7 +233,7 @@ int pl_eval_node(MP3FILE *pmp3, PL_NODE *pnode) { if(!cval) cval = ""; - DPRINTF(ERR_DEBUG,"Matching %s to %s\n",argc,pnode->arg2.cval); + DPRINTF(ERR_DEBUG,"Matching %s to %s\n",cval,pnode->arg2.cval); switch(boolarg) { case IS: @@ -248,6 +248,8 @@ int pl_eval_node(MP3FILE *pmp3, PL_NODE *pnode) { } if(pnode->type==T_INT) { + DPRINTF(ERR_DEBUG,"Comparing %d to %d\n",ival,pnode->arg2,ival); + switch(boolarg) { case EQUALS: r_arg=(ival == pnode->arg2.ival); @@ -265,7 +267,7 @@ int pl_eval_node(MP3FILE *pmp3, PL_NODE *pnode) { r_arg=(ival <= pnode->arg2.ival); break; } - return not? !r_arg : r_arg; + retval = not? !r_arg : r_arg; } /* can't get here */