Changeset 364 for trunk/ADOL-C/include


Ignore:
Timestamp:
Nov 15, 2012 6:51:15 AM (7 years ago)
Author:
kulshres
Message:

change alloc parameters to size_t

to avoid inadventent wrap arounds and not artificially limit the memory sizes. also adjust print format for error messages accordingly

From: Jean Utke <utke@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ADOL-C/include/adolc/adalloc.h

    r354 r364  
    2424/*--------------------------------------------------------------------------*/
    2525/*                                              MEMORY MANAGEMENT UTILITIES */
    26 ADOLC_DLL_EXPORT double    *myalloc1(int);
    27 ADOLC_DLL_EXPORT double   **myalloc2(int, int);
    28 ADOLC_DLL_EXPORT double  ***myalloc3(int, int, int);
     26ADOLC_DLL_EXPORT double    *myalloc1(size_t);
     27ADOLC_DLL_EXPORT double   **myalloc2(size_t, size_t);
     28ADOLC_DLL_EXPORT double  ***myalloc3(size_t, size_t, size_t);
    2929
    3030ADOLC_DLL_EXPORT void myfree1(double   *);
Note: See TracChangeset for help on using the changeset viewer.