IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40373 for trunk


Ignore:
Timestamp:
Mar 23, 2018, 6:38:48 AM (8 years ago)
Author:
eugene
Message:

cast SNvalue to float not int

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/relphot/src/setMrelCatalog.c

    r40296 r40373  
    633633
    634634      // soften the error floor (can dM be 0.0?)
    635       int SNvalue = isfinite(measure[k].dM) ? 1.0 / hypot (measure[k].dM, MIN_ERROR) : NAN;
     635      // XXX EAM : this was int SNvalue -- isfinite(SNvalue) would always be finite
     636      float SNvalue = isfinite(measure[k].dM) ? 1.0 / hypot (measure[k].dM, MIN_ERROR) : NAN;
    636637      int psfQFperfAboveLimit = isfinite(SNvalue) && isfinite(measure[k].psfQFperf) && (measure[k].psfQFperf > 0.95);
    637638
Note: See TracChangeset for help on using the changeset viewer.