Index: trunk/psLib/src/math/psMatrix.c
===================================================================
--- trunk/psLib/src/math/psMatrix.c	(revision 26892)
+++ trunk/psLib/src/math/psMatrix.c	(revision 42827)
@@ -459,5 +459,6 @@
 // (based on version by William Kahan -- see Ohana/src/libohana/doc/kahan-gji.pdf)
 
-# define MAX_RANGE 1.0e7
+# define MAX_RANGE_F64 1.0e16
+# define MAX_RANGE_F32 1.0e8
 // MAX_RANGE is used to test for ill-conditioned input matrices.  For an ill-conditioned
 // matrix, one or more of the pivots trends towards zero, and growth goes to infinity.  Rather
@@ -474,4 +475,6 @@
     PS_ASSERT_INT_EQUAL(a->numCols, a->numRows, false);
     PS_ASSERT_VECTOR_SIZE(b, (long int)a->numCols, false);
+
+    psF32 MAX_RANGE = MAX_RANGE_F32;
 
     // Check for non-finite entries in matrix
@@ -499,5 +502,6 @@
               }
           }
-          break;
+	  MAX_RANGE = MAX_RANGE_F64;
+	  break;
       }
       default:
