Index: trunk/psLib/src/math/psFunctions.h
===================================================================
--- trunk/psLib/src/math/psFunctions.h	(revision 4898)
+++ trunk/psLib/src/math/psFunctions.h	(revision 4937)
@@ -12,6 +12,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-08-30 01:14:13 $
+ *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-08-31 22:28:35 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -74,5 +74,5 @@
 {
     psPolynomialType type;             ///< Polynomial type
-    int n;                             ///< Number of terms
+    unsigned int n;                    ///< Number of terms
     psF64 *coeff;                      ///< Coefficients
     psF64 *coeffErr;                   ///< Error in coefficients
@@ -85,6 +85,6 @@
 {
     psPolynomialType type;             ///< Polynomial type
-    int nX;                            ///< Number of terms in x
-    int nY;                            ///< Number of terms in y
+    unsigned int nX;                   ///< Number of terms in x
+    unsigned int nY;                   ///< Number of terms in y
     psF64 **coeff;                     ///< Coefficients
     psF64 **coeffErr;                  ///< Error in coefficients
@@ -97,7 +97,7 @@
 {
     psPolynomialType type;             ///< Polynomial type
-    int nX;                           ///< Number of terms in x
-    int nY;                            ///< Number of terms in y
-    int nZ;                           ///< Number of terms in z
+    unsigned int nX;                   ///< Number of terms in x
+    unsigned int nY;                   ///< Number of terms in y
+    unsigned int nZ;                   ///< Number of terms in z
     psF64 ***coeff;                    ///< Coefficients
     psF64 ***coeffErr;                 ///< Error in coefficients
@@ -110,8 +110,8 @@
 {
     psPolynomialType type;             ///< Polynomial type
-    int nX;                            ///< Number of terms in x
-    int nY;                            ///< Number of terms in y
-    int nZ;                            ///< Number of terms in z
-    int nT;                            ///< Number of terms in t
+    unsigned int nX;                   ///< Number of terms in x
+    unsigned int nY;                   ///< Number of terms in y
+    unsigned int nZ;                   ///< Number of terms in z
+    unsigned int nT;                   ///< Number of terms in t
     psF64 ****coeff;                   ///< Coefficients
     psF64 ****coeffErr;                ///< Error in coefficients
@@ -126,5 +126,5 @@
  */
 psPolynomial1D* psPolynomial1DAlloc(
-    int n,                             ///< Number of terms
+    unsigned int n,                    ///< Number of terms
     psPolynomialType type              ///< Polynomial Type
 );
@@ -135,6 +135,6 @@
  */
 psPolynomial2D* psPolynomial2DAlloc(
-    int nX,                   ///< Number of terms in x
-    int nY,                   ///< Number of terms in y
+    unsigned int nX,                   ///< Number of terms in x
+    unsigned int nY,                   ///< Number of terms in y
     psPolynomialType type              ///< Polynomial Type
 );
@@ -145,7 +145,7 @@
  */
 psPolynomial3D* psPolynomial3DAlloc(
-    int nX,                            ///< Number of terms in x
-    int nY,                            ///< Number of terms in y
-    int nZ,                            ///< Number of terms in z
+    unsigned int nX,                   ///< Number of terms in x
+    unsigned int nY,                   ///< Number of terms in y
+    unsigned int nZ,                   ///< Number of terms in z
     psPolynomialType type              ///< Polynomial Type
 );
@@ -156,8 +156,8 @@
  */
 psPolynomial4D* psPolynomial4DAlloc(
-    int nX,                            ///< Number of terms in x
-    int nY,                            ///< Number of terms in y
-    int nZ,                            ///< Number of terms in z
-    int nT,                            ///< Number of terms in t
+    unsigned int nX,                   ///< Number of terms in x
+    unsigned int nY,                   ///< Number of terms in y
+    unsigned int nZ,                   ///< Number of terms in z
+    unsigned int nT,                   ///< Number of terms in t
     psPolynomialType type              ///< Polynomial Type
 );
@@ -212,6 +212,4 @@
     psPtr ptr                          ///< the pointer whose type to check
 );
-
-
 
 /** Evaluates a 1-D polynomial at specific coordinates.
@@ -299,9 +297,8 @@
 );
 
-
 /** One-Dimensional Spline */
 typedef struct
 {
-    int n;                             ///< The number of spline pieces
+    unsigned int n;                    ///< The number of spline pieces
     psPolynomial1D **spline;           ///< An array of n pointers to the spline polynomials
     psVector *knots;                   ///< The boundaries between each spline piece.  Size is n+1.
@@ -319,6 +316,6 @@
  */
 psSpline1D *psSpline1DAlloc(
-    int n,                             ///< Number of spline polynomials
-    int order,                         ///< Order of spline polynomials
+    unsigned int n,                             ///< Number of spline polynomials
+    unsigned int order,                         ///< Order of spline polynomials
     float min,                         ///< Lower boundary value of spline polynomials
     float max                          ///< Upper boundary value of spline polynomials
@@ -333,5 +330,5 @@
 psSpline1D *psSpline1DAllocGeneric(
     const psVector *bounds,            ///< Bounds for spline polynomials
-    int order                          ///< Order of spline polynomials
+    unsigned int order                 ///< Order of spline polynomials
 );
 
