IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 16, 2011, 4:11:29 PM (15 years ago)
Author:
Serge CHASTEL
Message:

Implicit conversion fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppTranslate/src/ppMopsMerge.c

    r30629 r30656  
    2222    )
    2323{
    24     float dx = detections->x->data.F32[index] - detections->naxis1->data.S32[index] / 2.0;
    25     float dy = detections->y->data.F32[index] - detections->naxis2->data.S32[index] / 2.0;
    26     return PS_SQR(dx) + PS_SQR(dy);
     24  float dx = (float) (detections->x->data.F32[index] - detections->naxis1->data.S32[index] / 2.0);
     25  float dy = (float) (detections->y->data.F32[index] - detections->naxis2->data.S32[index] / 2.0);
     26  return PS_SQR(dx) + PS_SQR(dy);
    2727}
    2828
     
    170170    psTrace("ppMops.merge", 2, "%ld sources in merged detections list\n", merged->num);
    171171
    172     merged->seeing /= num;
     172    merged->seeing /= (float) num;
    173173
    174174    return merged;
Note: See TracChangeset for help on using the changeset viewer.