openbsd-ports/multimedia/avinfo/patches/patch-src_ass_y
kevlo ce0397e16d Initial import of avinfo-1.0.a15
Avinfo is an utility for audio-video information extraction.

ok ajacoutot@
2010-09-01 10:26:04 +00:00

13 lines
654 B
Plaintext

$OpenBSD: patch-src_ass_y,v 1.1.1.1 2010/09/01 10:26:04 kevlo Exp $
--- src/ass.y.orig Tue Aug 31 17:33:31 2010
+++ src/ass.y Tue Aug 31 17:34:29 2010
@@ -224,7 +224,7 @@ var_t Op(var_t var1, var_t var2, int op_type){
break;
case '/':res.number=var2.number?var1.number/var2.number:1;
break;
- case NE :if(var1.type==var2.type==t_STRING) res.number=STRCMP(var1.string,var2.string);
+ case NE :if(var1.type==(var2.type==t_STRING)) res.number=STRCMP(var1.string,var2.string);
else res.number=(var1.number!=var2.number);
break;
case '=':if(var1.type==t_STRING && var2.type==t_STRING) res.number=!STRCMP(var1.string,var2.string);