RE: [Audacity-devel] Question concerning new lrintf() header
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
From: Markus M. <me...@me...> - 2003-04-19 00:38:00
|
Dominic, > > This doesn't seem to work for negative values. Shouldn't it > look like > > this: > > > > #define lrint(flt) ((int)((flt) + ((flt)<0 ? -0.5 : 0.5))) > > #define lrintf(flt) ((int)((flt) + ((flt)<0 ? -0.5f : 0.5f))) > > You're right...even better, let's replace it with (int)rint(flt) - > could you make that change? Committed. Markus |