Index: /trunk/psModules/src/pmFlatField.c
===================================================================
--- /trunk/psModules/src/pmFlatField.c	(revision 1814)
+++ /trunk/psModules/src/pmFlatField.c	(revision 1815)
@@ -15,6 +15,6 @@
  *  @author Ross Harman, MHPCC
  *
- *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-09-15 01:04:29 $
+ *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-09-15 01:08:23 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -128,5 +128,5 @@
         psError(__func__, " : Line %d - Input and flat image types don't agree. (%d vs %d).",
                 __LINE__, inType, flatType);
-        return NULL;
+        return false;
     }
 
@@ -145,7 +145,7 @@
     for(j = totOffRow; j < inImage->numRows; j++) {                                                          \
         for(i = totOffCol; i < inImage->numCols; i++) {                                                      \
-            if(maskImage->data.F64[j][i] == 0) {                                                             \
+            if(!maskImage->data.F64[j][i]) {                                                                 \
                 /* Module shall divide the input image by the flat-fielded image */                          \
-                inImage->data.TYPE[j][i] = inImage->data.TYPE[j][i]/flatImage->data.TYPE[j][i];              \
+                inImage->data.TYPE[j][i] /= flatImage->data.TYPE[j][i];                                      \
             }                                                                                                \
         }                                                                                                    \
