IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 7, 2004, 9:51:30 AM (22 years ago)
Author:
desonia
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/collections/psVector.c

    r1920 r2006  
    1010*  @author Robert DeSonia, MHPCC
    1111*
    12 *  @version $Revision: 1.27 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2004-09-28 23:26:48 $
     12*  @version $Revision: 1.28 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2004-10-07 19:51:30 $
    1414*
    1515*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    9696    }
    9797
     98    if (in->type.dimen !=  PS_DIMEN_VECTOR &&
     99            in->type.dimen !=  PS_DIMEN_TRANSV) {
     100        psFree(in);
     101        psErrorMsg(PS_ERRORNAME_DOMAIN "psVectorRecycle",
     102                   PS_ERR_BAD_PARAMETER_TYPE, true,
     103                   PS_ERRORTEXT_psVector_NOT_A_VECTOR);
     104        return NULL;
     105    }
     106
    98107    byteSize = n * PSELEMTYPE_SIZEOF(type);
    99108
     
    104113    }
    105114
     115    in->type.dimen = PS_DIMEN_VECTOR;
    106116    in->type.type = type;
    107117    in->n = n;
    108 
    109118    return in;
    110119}
Note: See TracChangeset for help on using the changeset viewer.