--- ray/src/rt/pmapio.c 2015/05/22 14:09:01 2.5 +++ ray/src/rt/pmapio.c 2015/10/20 15:51:54 2.8 @@ -1,3 +1,6 @@ +#ifndef lint +static const char RCSid[] = "$Id: pmapio.c,v 2.8 2015/10/20 15:51:54 rschregle Exp $"; +#endif /* ================================================================== Photon map file I/O @@ -8,7 +11,6 @@ supported by the Swiss National Science Foundation (SNSF, #147053) ================================================================== - $Id: pmapio.c,v 2.5 2015/05/22 14:09:01 greg Exp $ */ @@ -169,7 +171,7 @@ PhotonMapType loadPhotonMap (PhotonMap *pmap, const ch /* Identify photon map type from format string */ for (ptype = 0; - strcmp(pmapFormat [ptype], format) && ptype < NUM_PMAP_TYPES; + ptype < NUM_PMAP_TYPES && strcmp(pmapFormat [ptype], format); ptype++); if (!validPmapType(ptype)) {