IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33998


Ignore:
Timestamp:
Jun 10, 2012, 6:14:45 AM (14 years ago)
Author:
eugene
Message:

compare same enum types

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120601/psLib/src/types/psMetadataItemCompare.c

    r20479 r33998  
    129129  case PS_TYPE_##COMPARETYPENAME: { \
    130130      TEMPLATETYPE valueC = (TEMPLATETYPE)compare->data.COMPARENAME; \
    131       TEMPLATETYPE valueT = (TEMPLATETYPE)template->data.TEMPLATENAME; \
    132       /* XXX check the validiy of the type casting? */ \
    133       if (valueC != compare->data.COMPARENAME) { \
    134           return false; \
    135       } \
    136       COMPARE_VALUES(valueT, valueC, (template->type == PS_TYPE_F32 || template->type == PS_TYPE_F64)); \
     131      TEMPLATETYPE valueT = (TEMPLATETYPE)template->data.TEMPLATENAME;  \
     132      /* XXX check the validiy of the type casting? */                  \
     133      if (valueC != compare->data.COMPARENAME) {                        \
     134        return false;                                                   \
     135      }                                                                 \
     136      COMPARE_VALUES(valueT, valueC, (template->type == PS_DATA_F32 || template->type == PS_DATA_F64)); \
     137      /* COMPARE_VALUES(valueT, valueC, 1);                             */  \
    137138      psAbort("Should never reach here."); \
    138139  }
Note: See TracChangeset for help on using the changeset viewer.