PDA

View Full Version : bug in freebsd lrint (sorry)



jonseq
04-20-2003, 01:59 PM
patch of my patch (left out a return statement - oops!):

Submitted patch:
http://sourceforge.net/tracker/index.php?func=detail&aid=724722&group_id=10131&atid=310131



Index: src/player.cpp
================================================== =================
RCS file: /cvsroot/seq/showeq/src/player.cpp,v
retrieving revision 1.34
diff -c -r1.34 player.cpp
*** src/player.cpp 19 Apr 2003 03:23:03 -0000 1.34
--- src/player.cpp 20 Apr 2003 19:46:30 -0000
***************
*** 18,24 ****
#ifdef __FreeBSD__
long int lrint(double x)
{
! long int l=(x+.5);
}

long int lrintf(float x)
--- 18,25 ----
#ifdef __FreeBSD__
long int lrint(double x)
{
! long int l=(long int)(x+.5);
! return l;
}

long int lrintf(float x)

Ratt
04-20-2003, 11:20 PM
Still need the actual patch itself...

jonseq
04-21-2003, 02:02 AM
heh sorry - the earlier patch was already merged to CVS and closed - so it's just a patch at this point =) looks like this one has been merged as well - I appreciate it.

Ratt
04-21-2003, 08:59 AM
Yea, I noticed that afterwards.