IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1160


Ignore:
Timestamp:
Jun 30, 2004, 12:45:15 PM (22 years ago)
Author:
harman
Message:

Fixed segmentation fault

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/collections/tst_psVector_02.c

    r1073 r1160  
    1212 *  @author  Ross Harman, MHPCC
    1313 *
    14  *  @version $Revision: 1.4 $  $Name: not supported by cvs2svn $
    15  *  @date  $Date: 2004-06-23 23:00:15 $
     14 *  @version $Revision: 1.5 $  $Name: not supported by cvs2svn $
     15 *  @date  $Date: 2004-06-30 22:45:15 $
    1616 *
    1717 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    4141    psVector *psVec = psVectorAlloc(5, PS_TYPE_PTR);
    4242    printf("Vector size = %d\n", psVec->nalloc);
    43     printf("Vector population = %d\n", psVec->n);
     43    printf("Vector type = %d\n", psVec->type.type);
     44    printf("Vector dimen = %d\n", psVec->type.dimen);
    4445    printFooter(stdout, "psVector", "Create void pointer vector", true);
    4546
     
    5354        mySt[i] = ts;
    5455        psVec->data.PTR[i] = ts;
    55         psVec->n++;
    5656        psMemIncrRefCounter(ts);
    5757    }
Note: See TracChangeset for help on using the changeset viewer.