Hi

On Sun, Aug 12, 2007 at 10:45:02AM +0200, reynaldo wrote:
[...]
> +
> +                if(lag[i] == 140.5 || lag[i] == 141.5 || lag[i] == 142.5)

be carefull with == checks and floating point variables
this can fail in cases like
140.499999 != 140.5

(i guess its written in the spec like that but its silly, likely the mere use
of floats and doubles is silly but i dunno qcelp well enough to say for sure
if it could be done easily without floats and doubles)

PS: yes, if things can easily be done with fixed point variables they should
instead of using floats

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Dictatorship naturally arises out of democracy, and the most aggravated
form of tyranny and slavery out of the most extreme liberty. -- Plato

Attachment: signature.asc
Description: Digital signature

_______________________________________________
FFmpeg-soc mailing list
[email protected]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc

Reply via email to