IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41659


Ignore:
Timestamp:
Jun 8, 2021, 4:03:30 PM (5 years ago)
Author:
eugene
Message:

fix global vs local variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psastroFindChipGPC.c

    r41609 r41659  
    2626static psImage *chipCenters = NULL;
    2727
    28 static double XminFPA = +FLT_MAX;
    29 static double XmaxFPA = -FLT_MAX;
    30 static double YminFPA = +FLT_MAX;
    31 static double YmaxFPA = -FLT_MAX;
    32 
     28// XXX these should not be defined as global (only used in psastroChipBoundsGPC)
     29// static double XmaxFPA = -FLT_MAX;
     30// static double YmaxFPA = -FLT_MAX;
     31
     32// these are used in gsastroFindChipGPC to find the chip match:
     33static double XminFPA   = +FLT_MAX;
     34static double YminFPA   = +FLT_MAX;
    3335static double xInvScale = NAN;
    3436static double yInvScale = NAN;
     
    4143    chipYmax = psVectorAlloc (fpa->chips->n, PS_TYPE_F32);
    4244
    43     double XminFPA = +FLT_MAX;
     45    // XXX these should not be declared local (override the global values)
     46    // double XminFPA = +FLT_MAX;
     47    // double YminFPA = +FLT_MAX;
     48
    4449    double XmaxFPA = -FLT_MAX;
    45     double YminFPA = +FLT_MAX;
    4650    double YmaxFPA = -FLT_MAX;
    4751
Note: See TracChangeset for help on using the changeset viewer.