IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4202


Ignore:
Timestamp:
Jun 9, 2005, 1:45:42 PM (21 years ago)
Author:
gusciora
Message:

Added in a fabs() > 0.0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/test/tst_pmObjects01.c

    r4102 r4202  
    1919 * abd never deallocate, no error is generated.
    2020 *
    21  *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
    22  *  @date $Date: 2005-06-03 22:45:51 $
     21 *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
     22 *  @date $Date: 2005-06-09 23:45:42 $
    2323 *
    2424 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    105105        testStatus = false;
    106106    } else {
    107         if ((tmpMoments->x != 0.0) ||
    108                 (tmpMoments->y != 0.0) ||
    109                 (tmpMoments->Sx != 0.0) ||
    110                 (tmpMoments->Sy != 0.0) ||
    111                 (tmpMoments->Sxy != 0.0) ||
    112                 (tmpMoments->Sum != 0.0) ||
    113                 (tmpMoments->Peak != 0.0) ||
    114                 (tmpMoments->Sky != 0.0) ||
     107        if ((fabs(tmpMoments->x) > 0.0) ||
     108                (fabs(tmpMoments->y) > 0.0) ||
     109                (fabs(tmpMoments->Sx) > 0.0) ||
     110                (fabs(tmpMoments->Sy) > 0.0) ||
     111                (fabs(tmpMoments->Sxy) > 0.0) ||
     112                (fabs(tmpMoments->Sum) > 0.0) ||
     113                (fabs(tmpMoments->Peak) > 0.0) ||
     114                (fabs(tmpMoments->Sky) > 0.0) ||
    115115                (tmpMoments->nPixels != 0)) {
    116116            printf("TEST ERROR: pmMomentsAlloc() did not properly initialize the psMoments structure.\n");
Note: See TracChangeset for help on using the changeset viewer.