IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1326


Ignore:
Timestamp:
Jul 28, 2004, 4:47:39 PM (22 years ago)
Author:
evanalst
Message:

Add check for bound array not F32 in psHistogramAllocGeneric function.

Location:
trunk/psLib/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/dataManip/psStats.c

    r1322 r1326  
    16401640    }
    16411641
     1642    if (bounds->type.type != PS_TYPE_F32) {
     1643        // psAbort(__func__, "psHistogram request a bound which is not type F32");
     1644        return(NULL);
     1645    }
     1646
    16421647    // Allocate memory for the new histogram structure.
    16431648    newHist = (psHistogram *) psAlloc(sizeof(psHistogram));
  • trunk/psLib/src/math/psStats.c

    r1322 r1326  
    16401640    }
    16411641
     1642    if (bounds->type.type != PS_TYPE_F32) {
     1643        // psAbort(__func__, "psHistogram request a bound which is not type F32");
     1644        return(NULL);
     1645    }
     1646
    16421647    // Allocate memory for the new histogram structure.
    16431648    newHist = (psHistogram *) psAlloc(sizeof(psHistogram));
Note: See TracChangeset for help on using the changeset viewer.