From c9547ee5f58fc8b95db19b3a0c70b095dbc8d987 Mon Sep 17 00:00:00 2001 From: kramm Date: Wed, 3 Nov 2004 18:52:41 +0000 Subject: [PATCH] fixed swf_Optimize(). always return positive tag hash. --- lib/modules/swftools.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules/swftools.c b/lib/modules/swftools.c index e92b44f..2de52f7 100644 --- a/lib/modules/swftools.c +++ b/lib/modules/swftools.c @@ -944,7 +944,7 @@ static int tagHash(TAG*tag) a >>= 8; a += tag->data[t]*0xefbc35a5*b*(t+1); } - return a; + return a&0x7fffffff; //always return unsigned } void swf_Optimize(SWF*swf) -- 1.7.10.4