Changeset 30726
- Timestamp:
- Feb 21, 2011, 11:12:21 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/libohana/include/ohana_allocate.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libohana/include/ohana_allocate.h
r30602 r30726 49 49 50 50 # define REALLOCATE(PTR,TYPE,SIZE) { \ 51 PTR = (TYPE *) realloc(PTR,( unsigned)(MAX(((SIZE)*((int)sizeof(TYPE))),1))); \51 PTR = (TYPE *) realloc(PTR,(size_t)(MAX(((SIZE)*((int)sizeof(TYPE))),1))); \ 52 52 if (PTR == NULL) { \ 53 53 fprintf(stderr,"failed realloc at %d in %s\n", __LINE__, __FILE__); \ … … 57 57 if ((NCURR) >= (SIZE)) { \ 58 58 SIZE += DELTA; \ 59 PTR = (TYPE *) realloc(PTR,( unsigned)(MAX(((SIZE)*((int)sizeof(TYPE))),1))); \59 PTR = (TYPE *) realloc(PTR,(size_t)(MAX(((SIZE)*((int)sizeof(TYPE))),1))); \ 60 60 if (PTR == NULL) { \ 61 61 fprintf(stderr,"failed realloc increment at %d in %s\n", __LINE__, __FILE__); \
Note:
See TracChangeset
for help on using the changeset viewer.
