[cig-commits] r20250 - short/3D/PyLith/branches/v1.7-trunk/libsrc/pylith/utils

brad at geodynamics.org brad at geodynamics.org
Thu May 31 12:13:37 PDT 2012


Author: brad
Date: 2012-05-31 12:13:37 -0700 (Thu, 31 May 2012)
New Revision: 20250

Modified:
   short/3D/PyLith/branches/v1.7-trunk/libsrc/pylith/utils/constdefs.h
Log:
Fixed bug in setting max scalar for single precision.

Modified: short/3D/PyLith/branches/v1.7-trunk/libsrc/pylith/utils/constdefs.h
===================================================================
--- short/3D/PyLith/branches/v1.7-trunk/libsrc/pylith/utils/constdefs.h	2012-05-31 19:08:09 UTC (rev 20249)
+++ short/3D/PyLith/branches/v1.7-trunk/libsrc/pylith/utils/constdefs.h	2012-05-31 19:13:37 UTC (rev 20250)
@@ -30,7 +30,7 @@
 namespace pylith {
   static const double PYLITH_MAXDOUBLE = 1.0e+99;
   static const float PYLITH_MAXFLOAT = 1.0e+30;
-  static const PylithScalar PYLITH_MAXSCALAR = (sizeof(PylithScalar) == sizeof(double)) ? PYLITH_MAXDOUBLE : PYLITH_MAXSCALAR;
+  static const PylithScalar PYLITH_MAXSCALAR = (sizeof(PylithScalar) == sizeof(double)) ? PYLITH_MAXDOUBLE : PYLITH_MAXFLOAT;
 }
     
 



More information about the CIG-COMMITS mailing list