Revision: 7942
http://playerstage.svn.sourceforge.net/playerstage/?rev=7942&view=rev
Author: gbiggs
Date: 2009-07-02 23:50:06 +0000 (Thu, 02 Jul 2009)
Log Message:
-----------
Applied patch #2811396
Modified Paths:
--------------
code/player/trunk/rtk2/rtk_fig.c
code/player/trunk/utils/pmap/rmap.cpp
Modified: code/player/trunk/rtk2/rtk_fig.c
===================================================================
--- code/player/trunk/rtk2/rtk_fig.c 2009-07-02 23:45:31 UTC (rev 7941)
+++ code/player/trunk/rtk2/rtk_fig.c 2009-07-02 23:50:06 UTC (rev 7942)
@@ -34,6 +34,7 @@
#include <stdlib.h>
#include <string.h>
#include <math.h>
+#include <float.h>
#include "rtk.h"
#include "rtkprivate.h"
@@ -508,10 +509,10 @@
rtk_region_set_empty(fig->region);
// Reset the figure bounding box.
- fig->min_x = +DBL_MAX/2;
- fig->min_y = +DBL_MAX/2;
- fig->max_x = -DBL_MAX/2;
- fig->max_y = -DBL_MAX/2;
+ fig->min_x = +DBL_MAX / 2.0;
+ fig->min_y = +DBL_MAX / 2.0;
+ fig->max_x = -DBL_MAX / 2.0;
+ fig->max_y = -DBL_MAX / 2.0;
// Recalculate strokes
for (i = 0; i < fig->stroke_count; i++)
Modified: code/player/trunk/utils/pmap/rmap.cpp
===================================================================
--- code/player/trunk/utils/pmap/rmap.cpp 2009-07-02 23:45:31 UTC (rev
7941)
+++ code/player/trunk/utils/pmap/rmap.cpp 2009-07-02 23:50:06 UTC (rev
7942)
@@ -28,6 +28,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
+#include <float.h>
#include <gsl/gsl_multimin.h>
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit