IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15042


Ignore:
Timestamp:
Sep 26, 2007, 6:27:26 PM (19 years ago)
Author:
eugene
Message:

fixed float / int error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotApResid.c

    r15000 r15042  
    285285    if (readout->image->numCols > readout->image->numRows) {
    286286        Nx = scale;
    287         Ny = PS_MAX (1, Nx * (readout->image->numRows / readout->image->numCols));
     287        Ny = PS_MAX (1, Nx * (readout->image->numRows / (float) readout->image->numCols));
    288288    } else {
    289289        Ny = scale;
    290         Nx = PS_MAX (1, Ny * (readout->image->numCols / readout->image->numRows));
     290        Nx = PS_MAX (1, Ny * (readout->image->numCols / (float) readout->image->numRows));
    291291    }
    292292
Note: See TracChangeset for help on using the changeset viewer.