Index: trunk/psphot/src/psPolynomials.c
===================================================================
--- trunk/psphot/src/psPolynomials.c	(revision 5350)
+++ trunk/psphot/src/psPolynomials.c	(revision 5528)
@@ -257,10 +257,9 @@
     newPoly->coeffErr = (psF64 **)psAlloc(nXterm * sizeof(psF64 *));
     newPoly->mask = (psMaskType **)psAlloc(nXterm * sizeof(psMaskType *));
-    // XXX EAM : this is an error in the definition of the polynomial mask 
-    //           (should be psU8 not char)
+
     for (x = 0; x < nXterm; x++) {
         newPoly->coeff[x] = (psF64 *)psAlloc(nYterm * sizeof(psF64));
         newPoly->coeffErr[x] = (psF64 *)psAlloc(nYterm * sizeof(psF64));
-        newPoly->mask[x] = (char *)psAlloc(nYterm * sizeof(char));
+        newPoly->mask[x] = (psU8 *)psAlloc(nYterm * sizeof(char));
     }
     for (x = 0; x < nXterm; x++) {
