use size_t for MEM_allocN_len as well as some of its callers

This commit is contained in:
Campbell Barton
2010-04-29 21:46:25 +00:00
parent d2f5a60ca2
commit 5e74542bb6
5 changed files with 6 additions and 5 deletions

View File

@@ -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.

View File

@@ -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;