diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-04-30 01:46:25 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-04-30 01:46:25 +0400 |
commit | 5e74542bb652cb19741a3c81dbd53f5e961a3c22 (patch) | |
tree | 9f514a459150991d56f389aa55f837d885b31108 /intern | |
parent | d2f5a60ca2ee3d8cc9dfe1dbb3a2e7770a2b589c (diff) |
use size_t for MEM_allocN_len as well as some of its callers
Diffstat (limited to 'intern')
-rw-r--r-- | intern/guardedalloc/MEM_guardedalloc.h | 2 | ||||
-rw-r--r-- | intern/guardedalloc/intern/mallocn.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/intern/guardedalloc/MEM_guardedalloc.h b/intern/guardedalloc/MEM_guardedalloc.h index edc02cee403..705f099ab63 100644 --- a/intern/guardedalloc/MEM_guardedalloc.h +++ b/intern/guardedalloc/MEM_guardedalloc.h @@ -66,7 +66,7 @@ extern "C" { /** Returns the lenght of the allocated memory segment pointed at * by vmemh. If the pointer was not previously allocated by this * module, the result is undefined.*/ - int MEM_allocN_len(void *vmemh); + size_t MEM_allocN_len(void *vmemh); /** * Release memory previously allocatred by this module. diff --git a/intern/guardedalloc/intern/mallocn.c b/intern/guardedalloc/intern/mallocn.c index 2e7faf8aac1..9f2f57e119c 100644 --- a/intern/guardedalloc/intern/mallocn.c +++ b/intern/guardedalloc/intern/mallocn.c @@ -220,7 +220,7 @@ void MEM_set_memory_debug(void) malloc_debug_memset= 1; } -int MEM_allocN_len(void *vmemh) +size_t MEM_allocN_len(void *vmemh) { if (vmemh) { MemHead *memh= vmemh; |