IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 5, 2005, 1:43:58 PM (22 years ago)
Author:
gusciora
Message:

Added some type checking.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/pmNonLinear.c

    r2915 r2916  
    55 *  @author GLG, MHPCC
    66 *
    7  *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2005-01-05 23:25:24 $
     7 *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2005-01-05 23:43:58 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3535    PS_PTR_CHECK_NULL(inputReadout, NULL);
    3636    PS_PTR_CHECK_NULL(inputReadout->image, NULL);
     37    PS_IMAGE_CHECK_TYPE(inputReadout->image, PS_TYPE_F32, NULL);
    3738    PS_PTR_CHECK_NULL(input1DPoly, NULL);
    3839
     
    6263    PS_PTR_CHECK_NULL(inputReadout,NULL);
    6364    PS_PTR_CHECK_NULL(inputReadout->image,NULL);
     65    PS_IMAGE_CHECK_TYPE(inputReadout->image, PS_TYPE_F32, NULL);
    6466    PS_PTR_CHECK_NULL(inFlux,NULL);
    6567    psS32 tableSize = inFlux->n;
     
    7476                 "WARNING: pmNonLinear.c: pmNonLinearityLookup(): input vectors have different sizes (%d, %d)\n", inFlux->n, outFlux->n);
    7577    }
     78    PS_VECTOR_CHECK_TYPE(inFlux, PS_TYPE_F32, NULL);
     79    PS_VECTOR_CHECK_TYPE(outFlux, PS_TYPE_F32, NULL);
    7680
    7781    psS32 i;
Note: See TracChangeset for help on using the changeset viewer.