[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog libamf/amf.cpp libgeometry/Rang...
From: |
Markus Gothe |
Subject: |
[Gnash-commit] gnash ChangeLog libamf/amf.cpp libgeometry/Rang... |
Date: |
Sun, 17 Dec 2006 19:21:21 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Markus Gothe <nihilus> 06/12/17 19:21:21
Modified files:
. : ChangeLog
libamf : amf.cpp
libgeometry : Range2d.h
Log message:
MIPSPRO complainments.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.1948&r2=1.1949
http://cvs.savannah.gnu.org/viewcvs/gnash/libamf/amf.cpp?cvsroot=gnash&r1=1.22&r2=1.23
http://cvs.savannah.gnu.org/viewcvs/gnash/libgeometry/Range2d.h?cvsroot=gnash&r1=1.8&r2=1.9
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.1948
retrieving revision 1.1949
diff -u -b -r1.1948 -r1.1949
--- ChangeLog 17 Dec 2006 02:38:55 -0000 1.1948
+++ ChangeLog 17 Dec 2006 19:21:20 -0000 1.1949
@@ -1,3 +1,9 @@
+2006-12-17 Markus Gothe <address@hidden>
+
+ * libamf/amf.cpp: reinterive cast.
+ * libgeometry/Range2D.h: static_cast + using namespace std (for wicked
+ compilers, like MIPSPRO ;)).
+
2006-12-16 Rob Savoye <address@hidden>
* configure.ac: Add tests for MySQL. Print MYSQL flags from
Index: libamf/amf.cpp
===================================================================
RCS file: /sources/gnash/gnash/libamf/amf.cpp,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -b -r1.22 -r1.23
--- libamf/amf.cpp 11 Nov 2006 15:25:27 -0000 1.22
+++ libamf/amf.cpp 17 Dec 2006 19:21:20 -0000 1.23
@@ -18,7 +18,7 @@
//
//
-/* $Id: amf.cpp,v 1.22 2006/11/11 15:25:27 strk Exp $ */
+/* $Id: amf.cpp,v 1.23 2006/12/17 19:21:20 nihilus Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -972,7 +972,7 @@
case Number:
memcpy(buffer, tmpptr, 8);
swap64((uint64)*buffer);
- dbglogfile << "Number \"" << el.name.c_str() << "\" is: " <<
(long)buffer << endl;
+ dbglogfile << "Number \"" << el.name.c_str() << "\" is: " <<
reinterpret_cast<long>(buffer) << endl;
tmpptr += 8;
break;
case Boolean:
Index: libgeometry/Range2d.h
===================================================================
RCS file: /sources/gnash/gnash/libgeometry/Range2d.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- libgeometry/Range2d.h 8 Dec 2006 11:54:11 -0000 1.8
+++ libgeometry/Range2d.h 17 Dec 2006 19:21:20 -0000 1.9
@@ -19,7 +19,7 @@
//
-/* $Id: Range2d.h,v 1.8 2006/12/08 11:54:11 strk Exp $ */
+/* $Id: Range2d.h,v 1.9 2006/12/17 19:21:20 nihilus Exp $ */
#ifndef GNASH_RANGE2D_H
#define GNASH_RANGE2D_H
@@ -35,6 +35,8 @@
#include <iostream> // temporary include for debugging
#include <cmath> // for floor / ceil
+using namespace std;
+
namespace gnash {
namespace geometry {
@@ -739,7 +741,7 @@
template <> inline int
Range2d<int>::roundMin(float min)
{
- return (int)floor(min);
+ return static_cast<int>(floor(min));
}
/// Specialization of minimum value rounding for unsigned int type.
@@ -749,7 +751,7 @@
template <> inline unsigned int
Range2d<unsigned int>::roundMin(float min)
{
- return (unsigned int)floor(min);
+ return static_cast<unsigned int>(floor(min));
}
/// Specialization of maximum value rounding for int type.
@@ -759,7 +761,7 @@
template <> inline int
Range2d<int>::roundMax(float max)
{
- return (int)ceil(max);
+ return static_cast<int>(ceil(max));
}
/// Specialization of maximum value rounding for unsigned int type.
@@ -769,7 +771,7 @@
template <> inline unsigned int
Range2d<unsigned int>::roundMax(float max)
{
- return (unsigned int)ceil((float)max);
+ return static_cast<unsigned int>(ceil((float)max));
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash ChangeLog libamf/amf.cpp libgeometry/Rang...,
Markus Gothe <=