Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : proto/e_phys

Dir     : e17/proto/e_phys/src/lib


Modified Files:
        e_phys_world.c 


Log Message:
use FLT_MAX instead of the deprecated MAXFLOAT

===================================================================
RCS file: /cvs/e/e17/proto/e_phys/src/lib/e_phys_world.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- e_phys_world.c      22 Nov 2007 13:36:10 -0000      1.8
+++ e_phys_world.c      3 Dec 2007 21:38:08 -0000       1.9
@@ -1,5 +1,5 @@
 #include "E_Phys.h"
-#include <values.h>
+#include <float.h>
 
 static void e_phys_world_accumulate_forces(E_Phys_World *world);
 static void e_phys_world_verlet_integrate(E_Phys_World *world);
@@ -18,8 +18,8 @@
   E_Phys_World *world;
   world = calloc(1, sizeof(E_Phys_World));
   world->constraint_iter = 10;
-  world->w = MAXFLOAT;
-  world->h = MAXFLOAT;
+  world->w = FLT_MAX;
+  world->h = FLT_MAX;
   world->dt = 1.0 / 60.0;
   return world;
 }



-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to