IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 9, 2005, 1:51:49 PM (21 years ago)
Author:
desonia
Message:

changed psPixelsAlloc to set n to nalloc (as psVectorAlloc does).

File:
1 edited

Legend:

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

    r4155 r4203  
    55 *  @author Robert DeSonia, MHPCC
    66 *
    7  *  @version $Revision: 1.6 $
     7 *  @version $Revision: 1.7 $
    88 *           $Name: not supported by cvs2svn $
    9  *  @date $Date: 2005-06-08 19:48:15 $
     9 *  @date $Date: 2005-06-09 23:51:49 $
    1010 *
    1111 *  Copyright 2005 Maui High Performance Computing Center, University of Hawaii
     
    5858        return 2;
    5959    }
    60     if (p0->n != 0) {
     60    if (p0->n != p0->nalloc) {
    6161        psError(PS_ERR_UNKNOWN, true,
    6262                "psPixelsAlloc failed to set n = 0");
     
    8484    p1->data[0].y = 2;
    8585
    86     if (p1->n != 0) {
    87         psError(PS_ERR_UNKNOWN, true,
    88                 "psPixelsAlloc failed to set n = 0");
     86    if (p1->n != p1->nalloc) {
     87        psError(PS_ERR_UNKNOWN, true,
     88                "psPixelsAlloc failed to set n = %d", p1->nalloc);
    8989        return 13;
    9090    }
     
    113113    }
    114114
    115     if (p2->n != 0) {
    116         psError(PS_ERR_UNKNOWN, true,
    117                 "psPixelsAlloc failed to set n = 0");
     115    if (p2->n != p2->nalloc) {
     116        psError(PS_ERR_UNKNOWN, true,
     117                "psPixelsAlloc failed to set n = %d", p2->nalloc);
    118118        return 13;
    119119    }
     
    149149        return 2;
    150150    }
    151     if (p0->n != 0) {
     151    if (p0->n != p0->nalloc) {
    152152        psError(PS_ERR_UNKNOWN, true,
    153153                "psPixelsRealloc failed to set n = 0");
Note: See TracChangeset for help on using the changeset viewer.