[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog server/as_value.cpp
From: |
Benjamin Wolsey |
Subject: |
[Gnash-commit] gnash ChangeLog server/as_value.cpp |
Date: |
Tue, 18 Mar 2008 16:54:43 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Benjamin Wolsey <bwy> 08/03/18 16:54:43
Modified files:
. : ChangeLog
server : as_value.cpp
Log message:
I need to test this first. It's practically the same as it was
originally now.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.5965&r2=1.5966
http://cvs.savannah.gnu.org/viewcvs/gnash/server/as_value.cpp?cvsroot=gnash&r1=1.122&r2=1.123
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.5965
retrieving revision 1.5966
diff -u -b -r1.5965 -r1.5966
--- ChangeLog 18 Mar 2008 16:18:04 -0000 1.5965
+++ ChangeLog 18 Mar 2008 16:54:42 -0000 1.5966
@@ -1,5 +1,10 @@
2008-03-18 Benjamin Wolsey <address@hidden>
+ * server/as_value.cpp: revert most of to_int() changes until
+ it's tested on i586.
+
+2008-03-18 Benjamin Wolsey <address@hidden>
+
* server/as_value.cpp: (to_int() again): work with unsigned values
until the return. Will hopefully fix for 32-bit platforms.
Index: server/as_value.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/as_value.cpp,v
retrieving revision 1.122
retrieving revision 1.123
diff -u -b -r1.122 -r1.123
--- server/as_value.cpp 18 Mar 2008 16:18:05 -0000 1.122
+++ server/as_value.cpp 18 Mar 2008 16:54:42 -0000 1.123
@@ -488,18 +488,18 @@
if ( ! isfinite(d) ) return 0;
- boost::uint32_t i = 0;
+ boost::int32_t i = 0;
if (d < 0)
{
- i = - static_cast<boost::uint32_t>(-d) % 4294967296;
+ i = - static_cast<boost::uint32_t>(fmod (-d, 4294967296.0));
}
else
{
- i = static_cast<boost::uint32_t>(d) % 4294967296;
+ i = static_cast<boost::uint32_t>(fmod (d, 4294967296.0));
}
- return static_cast<boost::int32_t>(i);
+ return i;
}
// Conversion to boolean for SWF7 and up