gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash ChangeLog libbase/utility.h


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog libbase/utility.h
Date: Wed, 29 Aug 2007 02:49:17 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/08/29 02:49:17

Modified files:
        .              : ChangeLog 
        libbase        : utility.h 

Log message:
                * libbase/utility.h: fix the frnd() function to behave as
                  intended by original author. Fixed bug #20920.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.4141&r2=1.4142
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/utility.h?cvsroot=gnash&r1=1.30&r2=1.31

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.4141
retrieving revision 1.4142
diff -u -b -r1.4141 -r1.4142
--- ChangeLog   29 Aug 2007 01:08:16 -0000      1.4141
+++ ChangeLog   29 Aug 2007 02:49:17 -0000      1.4142
@@ -1,3 +1,8 @@
+2007-08-29 Sandro Santilli <address@hidden>
+
+       * libbase/utility.h: fix the frnd() function to behave as
+         intended by original author. Fixed bug #20920.
+
 2007-08-29 Markus Gothe <address@hidden>
 
        * libbase/component_hackery.cpp: Removed crufty file.

Index: libbase/utility.h
===================================================================
RCS file: /sources/gnash/gnash/libbase/utility.h,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -b -r1.30 -r1.31
--- libbase/utility.h   27 Aug 2007 22:47:54 -0000      1.30
+++ libbase/utility.h   29 Aug 2007 02:49:17 -0000      1.31
@@ -117,7 +117,7 @@
 #ifndef HAVE_EXP2
 inline double  exp2(double x) { return std::pow((double)2, double(x)); }
 #endif
-inline int     frnd(float f) { return (int)rint(f + 0.5f); }   // replace with 
inline asm if desired
+inline int     frnd(float f) { return (int)(f + 0.5f); }       // replace with 
inline asm if desired
 
 
 // Handy macro to quiet compiler warnings about unused parameters/variables.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]