From 57daf2c90dc409a2aa7030ce6ce996707e99967b Mon Sep 17 00:00:00 2001 From: kramm Date: Sat, 24 May 2008 15:17:31 +0000 Subject: [PATCH] fixed bug in swf_SetFixed(8) --- lib/rfxswf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rfxswf.c b/lib/rfxswf.c index 82511d4..05f6ad9 100644 --- a/lib/rfxswf.c +++ b/lib/rfxswf.c @@ -261,7 +261,7 @@ double swf_GetFixed(TAG * t) } void swf_SetFixed(TAG * t, double f) { - U16 fr = (U16)(f-(int)f)*65536; + U16 fr = (U16)((f-(int)f)*65536); swf_SetU16(t, fr); swf_SetU16(t, (U16)f - (f<0 && fr!=0)); } @@ -273,7 +273,7 @@ float swf_GetFixed8(TAG * t) } void swf_SetFixed8(TAG * t, float f) { - U8 fr = (U8)(f-(int)f)*256; + U8 fr = (U8)((f-(int)f)*256); swf_SetU8(t, fr); swf_SetU8(t, (U8)f - (f<0 && fr!=0)); } -- 1.7.10.4