IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 24, 2011, 4:39:11 PM (14 years ago)
Author:
eugene
Message:

error in the loop increment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSub/src/ppSubFlagNeighbors.c

    r31449 r32807  
    187187        pmPhotObj *obj = objects->data[j];
    188188 
     189        // fprintf (stderr, "%f, %f vs %f, %f\n", src->peak->xf, src->peak->yf, obj->x, obj->y);
     190
    189191        if (!src) NEXT1;
    190192        if (!src->peak) NEXT1;
     
    209211            src = sources->data[I];
    210212           
    211             if (!src) NEXT1;
    212             if (!src->peak) NEXT1;
    213             if (!isfinite(src->peak->xf)) NEXT1;
    214             if (!isfinite(src->peak->yf)) NEXT1;
    215             if (!isfinite(src->peak->detValue)) NEXT1;
    216             if (sqrt(src->peak->detValue) < MIN_SN) NEXT1;
     213            if (!src) continue;
     214            if (!src->peak) continue;
     215            if (!isfinite(src->peak->xf)) continue;
     216            if (!isfinite(src->peak->yf)) continue;
     217            if (!isfinite(src->peak->detValue)) continue;
     218            if (sqrt(src->peak->detValue) < MIN_SN) continue;
    217219
    218220            dx = src->peak->xf - obj->x;
Note: See TracChangeset for help on using the changeset viewer.