[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 15:47:38 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Benjamin Wolsey <bwy> 08/03/18 15:47:38
Modified files:
. : ChangeLog
server : as_value.cpp
Log message:
Always save before committing...
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.5963&r2=1.5964
http://cvs.savannah.gnu.org/viewcvs/gnash/server/as_value.cpp?cvsroot=gnash&r1=1.120&r2=1.121
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.5963
retrieving revision 1.5964
diff -u -b -r1.5963 -r1.5964
--- ChangeLog 18 Mar 2008 15:24:09 -0000 1.5963
+++ ChangeLog 18 Mar 2008 15:47:38 -0000 1.5964
@@ -1,3 +1,7 @@
+2008-03-18 Benjamin Wolsey <address@hidden>
+
+ * server/as_value.cpp: last commit of this file was wrong.
+
2008-03-18 Rob Savoye <address@hidden>
* libbase/lirc.{h,cpp}: Use byte_t instead of uint8_t.
Index: server/as_value.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/as_value.cpp,v
retrieving revision 1.120
retrieving revision 1.121
diff -u -b -r1.120 -r1.121
--- server/as_value.cpp 18 Mar 2008 14:01:00 -0000 1.120
+++ server/as_value.cpp 18 Mar 2008 15:47:38 -0000 1.121
@@ -481,6 +481,7 @@
// This returns an as_value as an integer. It is
// probably used for most implicit conversions to
// int, for instance in the String class.
+boost::int32_t
as_value::to_int() const
{
double d = to_number();
@@ -491,11 +492,11 @@
if (d < 0)
{
- i = - static_cast<boost::uint32_t>(-d) % (1 << 32));
+ i = - static_cast<boost::uint32_t>(-d) % 4294967296;
}
else
{
- i = static_cast<boost::uint32_t>(d) % (1 << 32));
+ i = static_cast<boost::uint32_t>(d) % 4294967296;
}
return i;