IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20595


Ignore:
Timestamp:
Nov 8, 2008, 2:30:07 PM (18 years ago)
Author:
eugene
Message:

explicit test of bad time (so we can break on it)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/astro/psTime.c

    r19737 r20595  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.116 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2008-09-24 20:04:32 $
     12 *  @version $Revision: 1.117 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2008-11-09 00:30:07 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    13911391
    13921392    // Check valid year range
     1393    if ((time->sec) < ((psS64)YEAR_0000_SEC) || (time->sec) > ((psS64)YEAR_9999_SEC)) {
     1394      psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Error: %s, %" PRId64 ", is out of range.  Must be between %" PRId64 " and %" PRId64 ".", "time->sec", time->sec, ((psS64)YEAR_0000_SEC), ((psS64)YEAR_9999_SEC));
     1395      return NULL;
     1396    }
     1397
    13931398    PS_ASSERT_S64_WITHIN_RANGE(time->sec, (psS64)YEAR_0000_SEC, (psS64)YEAR_9999_SEC, NULL);
    13941399
Note: See TracChangeset for help on using the changeset viewer.