Index: trunk/psLib/src/mathtypes/psImage.c
===================================================================
--- trunk/psLib/src/mathtypes/psImage.c	(revision 4877)
+++ trunk/psLib/src/mathtypes/psImage.c	(revision 4886)
@@ -9,6 +9,6 @@
  *  @author Ross Harman, MHPCC
  *
- *  @version $Revision: 1.75 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-08-18 21:44:40 $
+ *  @version $Revision: 1.76 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-08-26 03:35:02 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -209,4 +209,5 @@
     psF32 vF32;
     psF64 vF64;
+    int temp;
 
     if (image == NULL)
@@ -217,6 +218,9 @@
     switch (image->type.type) {
     case PS_TYPE_U8:
-        vU8 = va_arg (argp, psU32);
-
+        temp = va_arg (argp, psU32);
+        if ( temp >= 0 || temp <= 255 )
+            vU8 = temp;
+        else
+            psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Error:  U8 Value out of Range.\n");
         for (int iy = 0; iy < image->numRows; iy++) {
             for (int ix = 0; ix < image->numCols; ix++) {
@@ -224,5 +228,5 @@
             }
         }
-        break;
+        return (true);
 
     case PS_TYPE_F32:
Index: trunk/psLib/src/mathtypes/psImage.h
===================================================================
--- trunk/psLib/src/mathtypes/psImage.h	(revision 4877)
+++ trunk/psLib/src/mathtypes/psImage.h	(revision 4886)
@@ -11,6 +11,6 @@
  *  @author Ross Harman, MHPCC
  *
- *  @version $Revision: 1.62 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-08-18 21:44:40 $
+ *  @version $Revision: 1.63 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-08-26 03:35:02 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
