IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 8, 2006, 1:37:31 AM (19 years ago)
Author:
magnier
Message:

changed psVectorStats return value to bool

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psMinimizePolyFit.c

    r9730 r10548  
    1010 *  @author EAM, IfA
    1111 *
    12  *  @version $Revision: 1.24 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2006-10-24 22:52:56 $
     12 *  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2006-12-08 11:37:31 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    855855        }
    856856
    857         stats  = psVectorStats(stats, resid, NULL, mask, maskValue);
    858         if (stats == NULL) {
     857        if (!psVectorStats(stats, resid, NULL, mask, maskValue)) {
    859858            psError(PS_ERR_UNKNOWN, false, "Could not compute statistics on the resid vector.  Returning NULL.\n");
    860859            psFree(resid)
     
    13041303        }
    13051304
    1306         stats  = psVectorStats(stats, resid, NULL, mask, maskValue);
    1307         if (stats == NULL) {
     1305        if (!psVectorStats(stats, resid, NULL, mask, maskValue)) {
    13081306            psError(PS_ERR_UNKNOWN, false, "Could not compute statistics on the resid vector.  Returning NULL.\n");
    13091307            psFree(resid)
     
    18351833        }
    18361834
    1837         stats  = psVectorStats(stats, resid, NULL, mask, maskValue);
    1838         if (stats == NULL) {
     1835        if (!psVectorStats(stats, resid, NULL, mask, maskValue)) {
    18391836            psError(PS_ERR_UNKNOWN, false, "Could not compute statistics on the resid vector.  Returning NULL.\n");
    18401837            psFree(resid)
     
    24122409        }
    24132410
    2414         stats  = psVectorStats (stats, resid, NULL, mask, maskValue);
    2415         if (stats == NULL) {
     2411        if (!psVectorStats (stats, resid, NULL, mask, maskValue)) {
    24162412            psError(PS_ERR_UNKNOWN, false, "Could not compute statistics on the resid vector.  Returning NULL.\n");
    24172413            psFree(resid)
Note: See TracChangeset for help on using the changeset viewer.