Csound Csound-dev Csound-tekno Search About

[Cs-dev] more bug reporting on csoundapi~

Date2005-05-18 10:49
From"gerard van dongen"
Subject[Cs-dev] more bug reporting on csoundapi~
When I use optimization flags on linux, the library version checking gets  
messed because of a rounding error.
basically
(CSOUND_VERSION_ >= 5) where CSOUND_VERSION_=500/100.0 doesn't work.
Blame gcc.

I got it to work by changing the 5 to 4.99999, but that feels hacky.
Anybody got a better solution?
There was a similar problem with sr/kr in csound, wasn't there?
How was it solved?


Gerard




-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-05-18 11:48
FromVictor Lazzarini
SubjectRe: [Cs-dev] more bug reporting on csoundapi~
I can compare to an integer instead. The printout message
might look funny (cs 4.9999)

Victor

At 10:49 18/05/2005, you wrote:

>When I use optimization flags on linux, the library version checking gets
>messed because of a rounding error.
>basically
>(CSOUND_VERSION_ >= 5) where CSOUND_VERSION_=500/100.0 doesn't work.
>Blame gcc.
>
>I got it to work by changing the 5 to 4.99999, but that feels hacky.
>Anybody got a better solution?
>There was a similar problem with sr/kr in csound, wasn't there?
>How was it solved?
>
>
>Gerard
>
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by Oracle Space Sweepstakes
>Want to be the first software developer in space?
>Enter now for the Oracle Space Sweepstakes!
>http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth 



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-05-18 14:58
FromIstvan Varga
SubjectRe: [Cs-dev] more bug reporting on csoundapi~
Victor Lazzarini wrote:

> I can compare to an integer instead. The printout message
> might look funny (cs 4.9999)

Fortunately not, because a %.2f format should round it to 5.00.


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net