IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19706


Ignore:
Timestamp:
Sep 23, 2008, 1:49:01 PM (18 years ago)
Author:
Paul Price
Message:

Putting assertion on stupid condition.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPABin.c

    r19705 r19706  
    4848            }
    4949
    50             if (numPix > 0) {
    51                 outImage->data.F32[yOut][xOut] = sum / numPix;
    52             } else {
    53                 outImage->data.F32[yOut][xOut] = NAN;
    54             }
     50            outImage->data.F32[yOut][xOut] = numPix > 0 ? sum / numPix : NAN;
    5551        }
    5652    }
     
    6561        if (in->parent) {
    6662            pmCell *inCell = in->parent;// Input cell
     63            psAssert(outCell != inCell, "Can't copy in place!");
    6764            psFree(outCell->concepts);
    6865            outCell->concepts = psMetadataCopy(NULL, inCell->concepts);
Note: See TracChangeset for help on using the changeset viewer.