IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15692


Ignore:
Timestamp:
Nov 26, 2007, 4:27:19 PM (18 years ago)
Author:
Paul Price
Message:

Ensure case-insensitive comparison for min and max.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psBinaryOp.c

    r12433 r15692  
    3030 *  @author Robert DeSonia, MHPCC
    3131 *
    32  *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
    33  *  @date $Date: 2007-03-14 02:35:02 $
     32 *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
     33 *  @date $Date: 2007-11-27 02:27:19 $
    3434 *
    3535 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    364364} else if (!strncmp(OP, "^", 1)) {                                                                           \
    365365    BINARY_TYPE(DIM1,DIM2,OUT,IN1,pow(*i1,*i2),IN2);                                                         \
    366 } else if (!strncmp(OP, "min", 3)) {                                                                         \
     366} else if (!strncasecmp(OP, "min", 3)) {                                                                     \
    367367    BINARY_TYPE(DIM1,DIM2,OUT,IN1,fmin(*i1,*i2),IN2);                                                        \
    368 } else if (!strncmp(OP, "max", 3)) {                                                                         \
     368} else if (!strncasecmp(OP, "max", 3)) {                                                                     \
    369369    BINARY_TYPE(DIM1,DIM2,OUT,IN1,fmax(*i1,*i2),IN2);                                                        \
    370370} else {                                                                                                     \
Note: See TracChangeset for help on using the changeset viewer.