From 5e74542bb652cb19741a3c81dbd53f5e961a3c22 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 29 Apr 2010 21:46:25 +0000 Subject: use size_t for MEM_allocN_len as well as some of its callers --- intern/guardedalloc/MEM_guardedalloc.h | 2 +- intern/guardedalloc/intern/mallocn.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'intern/guardedalloc') 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; -- cgit v1.2.3