gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] [SCM] Gnash branch, master, updated. 5a8952cf6f6675fa7ce2


From: Sandro Santilli
Subject: [Gnash-commit] [SCM] Gnash branch, master, updated. 5a8952cf6f6675fa7ce2bb91986133419459e3f4
Date: Thu, 02 Dec 2010 06:47:11 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".

The branch, master has been updated
       via  5a8952cf6f6675fa7ce2bb91986133419459e3f4 (commit)
      from  9af44b275bc8d55da63c191742d724fcedfac070 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=5a8952cf6f6675fa7ce2bb91986133419459e3f4


commit 5a8952cf6f6675fa7ce2bb91986133419459e3f4
Author: Sandro Santilli <address@hidden>
Date:   Thu Dec 2 07:46:26 2010 +0100

    Explicitly use double std::pow(double, int). Should fix build on openbsd 
(http://gnashdev.org:8010/builders/4.8-release-openbsd-amd64/builds/6/steps/compile/logs/stdio)

diff --git a/libcore/SWFMatrix.cpp b/libcore/SWFMatrix.cpp
index c63d83e..7d5536e 100644
--- a/libcore/SWFMatrix.cpp
+++ b/libcore/SWFMatrix.cpp
@@ -290,16 +290,16 @@ SWFMatrix::invert()
 double
 SWFMatrix::get_x_scale() const
 {
-    const double a2 = std::pow(static_cast<double>(a()), 2.0);
-    const double b2 = std::pow(static_cast<double>(b()), 2.0);
+    const double a2 = std::pow(static_cast<double>(a()), 2);
+    const double b2 = std::pow(static_cast<double>(b()), 2);
     return std::sqrt(a2 + b2) / 65536.0;
 }
 
 double
 SWFMatrix::get_y_scale() const
 {
-    const double d2 = std::pow(static_cast<double>(d()), 2.0);
-    const double c2 = std::pow(static_cast<double>(c()), 2.0);
+    const double d2 = std::pow(static_cast<double>(d()), 2);
+    const double c2 = std::pow(static_cast<double>(c()), 2);
     return std::sqrt(d2 + c2) / 65536.0;
 }
 

-----------------------------------------------------------------------

Summary of changes:
 libcore/SWFMatrix.cpp |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
Gnash



reply via email to

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