freebsd-ports/audio/mt-daapd/files/patch-src_playlist.c
Christian Weisgerber 270ce9dfaa LP64 fixes: normalize truth values rather than truncating to int.
Approved by:	maintainer
Obtained from:	Arnaud Bergeron <abergeron@gmail.com>
2008-07-18 20:15:06 +00:00

11 lines
398 B
C

--- src/playlist.c.orig 2008-04-19 21:31:30.000000000 +0200
+++ src/playlist.c 2008-07-18 16:32:13.000000000 +0200
@@ -352,7 +352,7 @@ int pl_eval_node(MP3FILE *pmp3, PL_NODE
retval = not ? r_arg : !r_arg;
break;
case INCLUDES:
- r_arg=(int)strcasestr(cval,pnode->arg2.cval);
+ r_arg=!!strcasestr(cval,pnode->arg2.cval);
retval = not ? !r_arg : r_arg;
break;
}