X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=lib%2Frfxswf.c;h=05f6ad9e65dcbb605260a18bb48cdae63643ea7c;hb=6f9e657c0101322f5d2570407012362c7a019363;hp=82511d4fe490defe08dafd5e538c3e9fe0b700fd;hpb=2a477e3f4b12dd0f9175e705ce9568405e5b1f17;p=swftools.git 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)); }