[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] [SCM] Gnash branch, master, updated. 9af44b275bc8d55da63c
From: |
Rob Savoye |
Subject: |
[Gnash-commit] [SCM] Gnash branch, master, updated. 9af44b275bc8d55da63c191742d724fcedfac070 |
Date: |
Thu, 02 Dec 2010 03:40:35 +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 9af44b275bc8d55da63c191742d724fcedfac070 (commit)
from b7b807a90e8d5dae83e62715a42debe17c159de4 (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=9af44b275bc8d55da63c191742d724fcedfac070
commit 9af44b275bc8d55da63c191742d724fcedfac070
Author: Rob Savoye <address@hidden>
Date: Wed Dec 1 20:40:17 2010 -0700
fix compile problem on OpenBSD and Ltib
diff --git a/libcore/SWFMatrix.cpp b/libcore/SWFMatrix.cpp
index 61dc033..c63d83e 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(a(), 2);
- const double b2 = std::pow(b(), 2);
+ const double a2 = std::pow(static_cast<double>(a()), 2.0);
+ const double b2 = std::pow(static_cast<double>(b()), 2.0);
return std::sqrt(a2 + b2) / 65536.0;
}
double
SWFMatrix::get_y_scale() const
{
- const double d2 = std::pow(d(), 2);
- const double c2 = std::pow(c(), 2);
+ const double d2 = std::pow(static_cast<double>(d()), 2.0);
+ const double c2 = std::pow(static_cast<double>(c()), 2.0);
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] [SCM] Gnash branch, master, updated. 9af44b275bc8d55da63c191742d724fcedfac070,
Rob Savoye <=